You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The modals are now rewritten to be more compatible with existing modals (like
the DateModal) and to be testable.
Summary of what was done:
- Removed the redundant <Modal> wrapper from both modal components (Paper's
Dialog handles its own portal overlay)
- Replaced Checkbox.Item in CheckoutControlModal with a Button toggle (Paper's
AnimatedText isn't findable by getByText)
- Added per-test jest.mock('react-native-paper', ...) in both test files,
stubbing Dialog and TextInput with simple renderers that don't require
SafeAreaProvider or PaperProvider context
Screenshots at:
#1273 (comment)
0 commit comments