Skip to content

Create Detox Tests for Dark Mode Theme Switching #365

@manideepk90

Description

@manideepk90

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:

  1. Theme Toggle Functionality

    • Light to dark mode switching
    • Dark to light mode switching
    • Theme persistence across app restarts
    • System theme following (if supported)
  2. Payment Flow Theme Consistency

    • Payment form in dark mode
    • Payment form in light mode
    • Success screen theming
    • Error states in both themes
  3. Component Theme Validation

    • Button colors and states
    • Input field appearances
    • Text contrast ratios
    • Background color changes
  4. 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:

  • Theme toggle works in all screens
  • Payment flow maintains theme consistency
  • Theme persists across app sessions
  • All UI components respect theme changes
  • No visual glitches during theme switching
  • Accessibility contrast maintained in both themes

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershacktoberfestIssues that are up for grabs for hacktoberfest participants

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions