Skip to content

Tier 4: Add touch gesture simulation tests (swipe, pinch) #26

Description

@encomp

Context

Mobile transaction cards use SwipeCard with touch swipe gestures to reveal a delete action. Onboarding sliders and other touch interactions are untested at the gesture level — current tests only verify visibility, not touch interaction.

Scope

Add specs that simulate touch events:

  • SwipeCard swipe-to-delete — dispatch touch start/move/end events on a transaction card at mobile viewport, verify delete action is revealed
  • Onboarding slider drag — simulate touch drag on allocation sliders at mobile/tablet viewports

Challenges

Playwright's page.touchscreen API or custom dispatchEvent calls would be needed. This requires careful event construction (TouchEvent with correct touch points, changedTouches, etc.) and may be fragile across browsers.

References

  • SwipeCard component in budgetpilot/src/views/Transactions.tsx
  • Existing transaction-display-responsive.spec.ts verifies SwipeCard renders but doesn't test swipe

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2High priorityenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions