Skip to content

Conversation

@JesperDramsch
Copy link
Owner

Root causes identified and fixed:

  1. Search tests (28 failures): Tests used .first() to find search input, which found the hidden navbar #search-box on mobile (collapsed navbar). Added getVisibleSearchInput() helper that properly finds visible inputs and expands the navbar if needed.

  2. Toast dismiss test (mobile-chrome): Bootstrap 4 toast's data-dismiss attribute relies on jQuery events that don't trigger properly with Playwright's click on mobile. Added dismissToast() helper with fallback to programmatic hide.

  3. Action bar notifications (mobile-safari): Math.ceil() in day calculation caused timing-sensitive rounding issues. Adjusted test date setup to ensure consistent day calculation.

Also split mobile browser CI jobs (mobile-chrome/mobile-safari) into separate matrix jobs for better isolation and parallel execution, matching the pattern used for desktop browsers.

Root causes identified and fixed:

1. Search tests (28 failures): Tests used `.first()` to find search input,
   which found the hidden navbar `#search-box` on mobile (collapsed navbar).
   Added `getVisibleSearchInput()` helper that properly finds visible inputs
   and expands the navbar if needed.

2. Toast dismiss test (mobile-chrome): Bootstrap 4 toast's data-dismiss
   attribute relies on jQuery events that don't trigger properly with
   Playwright's click on mobile. Added `dismissToast()` helper with
   fallback to programmatic hide.

3. Action bar notifications (mobile-safari): Math.ceil() in day calculation
   caused timing-sensitive rounding issues. Adjusted test date setup to
   ensure consistent day calculation.

Also split mobile browser CI jobs (mobile-chrome/mobile-safari) into
separate matrix jobs for better isolation and parallel execution, matching
the pattern used for desktop browsers.
@JesperDramsch JesperDramsch merged commit 6e5518c into main Jan 5, 2026
8 of 9 checks passed
@JesperDramsch JesperDramsch deleted the claude/fix-mobile-tests-QT9hJ branch January 5, 2026 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants