super-productivity/e2e/tests/app-features
Johannes Millan b0f4e99c0b test(e2e): fix flaky focus mode tests
Fixed 6 flaky E2E tests in focus mode by addressing race conditions
with countdown animation and session state transitions.

Changes:
- Added pointer-events: none to countdown component to prevent blocking
  clicks during fade-out animation (195ms)
- Replaced arbitrary timeouts with explicit waits for session-in-progress
  indicator (complete session button) in all focus mode tests
- Tests now wait for countdown animation to fully complete before
  interacting with UI elements

Root causes:
1. Countdown overlay intercepted pointer events during fade animation,
   causing clicks to fail intermittently
2. 900ms delay between countdown completion and session start caused
   race conditions when using fixed timeouts

Affected tests:
- focus-mode-break.spec.ts (4 tests)
- flowtime-timer-bug-5117.spec.ts (2 tests)

All tests now pass consistently without retries.
2026-01-16 22:34:50 +01:00
..
app-features.spec.ts refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00
focus-mode-break.spec.ts test(e2e): fix flaky focus mode tests 2026-01-16 22:34:50 +01:00
focus-mode-feature.spec.ts Merge branch 'master' into feat/operation-logs 2026-01-03 18:51:51 +01:00
time-tracking-feature.spec.ts Merge branch 'master' into feat/operation-logs 2026-01-03 18:51:51 +01:00