Add Detox E2E tests for dark/light theme functionality
Create comprehensive Detox test cases for theme switching across the
payment flow:
Test Cases to Implement:
-
Theme Toggle Functionality
- Light to dark mode switching
- Dark to light mode switching
- Theme persistence across app restarts
- System theme following (if supported)
-
Payment Flow Theme Consistency
- Payment form in dark mode
- Payment form in light mode
- Success screen theming
- Error states in both themes
-
Component Theme Validation
- Button colors and states
- Input field appearances
- Text contrast ratios
- Background color changes
-
Cross-Platform Theme Testing
- Android theme switching
- iOS appearance mode handling
- Web theme persistence
Expected Outcome:
- Comprehensive theme testing coverage
- Visual regression prevention
- Theme consistency validation
Files to Create:
- detox-tests/e2e/themes/themeToggle.test.js
- detox-tests/e2e/themes/paymentFlowThemes.test.js
- detox-tests/helpers/themeHelpers.js
- detox-tests/utils/themeAssertions.js
Acceptance Criteria:
Add Detox E2E tests for dark/light theme functionality
Create comprehensive Detox test cases for theme switching across the
payment flow:
Test Cases to Implement:
Theme Toggle Functionality
Payment Flow Theme Consistency
Component Theme Validation
Cross-Platform Theme Testing
Expected Outcome:
Files to Create:
Acceptance Criteria: