super-productivity/e2e/pages
Johannes Millan b60845b42c
test(sync): reliably dismiss setup-time E2EE dialog in webdav e2e helper (#8727)
#8709 added a mandatory disableClose "Encrypt before first upload?" modal on
every fresh file-based sync setup. The setupWebdavSync helper dismissed it with
locator.isVisible({ timeout }), but isVisible() returns the CURRENT state
immediately and never polls — the timeout is effectively ignored. The modal
opens only after save()'s awaited provider-auth check and a lazy import() of the
dialog chunk, so it appears a beat after the Save click; isVisible() raced it,
returned false, and the Skip click was never issued. The leftover backdrop then
blocked every following interaction, failing ~11-12 @webdav specs per run with
"cdk-overlay-backdrop intercepts pointer events" and conflict dialogs that never
appeared. It passed only when the modal happened to already be up at the instant
of the check, which is why the failures looked flaky.

Use waitFor({ state: 'visible' }), which actually polls until the modal appears,
then click Skip and confirm it closes. Apply the same wait to the encrypt-at-
setup fill path. Verified green via a full @webdav CI run.
2026-07-03 15:27:48 +02:00
..
base.page.ts test(e2e): fix supersync test flakiness from navigation blocking and unhandled dialogs 2026-02-12 20:01:14 +01:00
dialog.page.ts Update recurrent task calendar and general calendar design (#8017) 2026-06-09 16:30:22 +02:00
import.page.ts Improve automated store screenshots 2026-05-10 00:58:01 +02:00
index.ts docs(e2e): add CLAUDE.md reference and barrel export for easier test creation 2026-01-03 13:27:24 +01:00
note.page.ts test(e2e): fix flaky tests with better waits and focus handling 2026-03-03 21:46:11 +01:00
planner.page.ts test(e2e): fix 12 flaky tests by removing networkidle waits and fixing plugin setup 2026-02-09 17:55:12 +01:00
project.page.ts feat(project): project completion experience (#8036) 2026-06-08 13:43:38 +02:00
schedule.page.ts test(webdav): add e2e tests 2025-12-29 12:48:36 +01:00
settings.page.ts test(e2e): use correct route /#/tag/TODAY/tasks instead of /#/tag/TODAY 2026-03-15 18:48:00 +01:00
side-nav.page.ts refactor: cleanup 2025-12-10 15:29:03 +01:00
supersync.page.ts refactor(ui): unify primary/secondary action button treatment across dialogs (#8706) 2026-07-02 14:42:59 +02:00
sync.page.ts test(sync): reliably dismiss setup-time E2EE dialog in webdav e2e helper (#8727) 2026-07-03 15:27:48 +02:00
tag.page.ts test(e2e): fix flaky tests with better waits and focus handling 2026-03-03 21:46:11 +01:00
task.page.ts Update recurrent task calendar and general calendar design (#8017) 2026-06-09 16:30:22 +02:00
work-view.page.ts Codex/issue 8081 keep subtask input open (#8423) 2026-06-18 17:58:45 +02:00