super-productivity/e2e/tests
Johannes Millan a49a863a08 test(e2e): improve sync test robustness with archive persistence waits
Adds explicit waits after archive operations to ensure IndexedDB writes
complete before proceeding with sync operations. This prevents race
conditions where sync attempts to read state before archive persistence
finishes.

Changes:
- Add waitForArchivePersistence() helper to sync-helpers.ts
  - Waits 1000ms for IndexedDB operations to complete
  - Additional 100ms for pending micro-tasks/animations
- Add 500ms waits in waitForSyncComplete() after detecting sync success
  - Ensures IndexedDB writes fully settle before returning
- Apply waitForArchivePersistence() in webdav-sync-archive.spec.ts
  - After Client A archives Task1
  - After Client B archives Task3
- Apply waitForArchivePersistence() in webdav-sync-delete-cascade.spec.ts
  - After Client A archives task (tag deletion test)
  - After Client B archives Task1 (concurrent archive test)

These changes address flakiness in CI environments where async IndexedDB
operations may not complete before the next test assertion.

Related to: Bug #5995, Bug #6044 (focus-mode test fixes)
2026-01-20 17:07:24 +01:00
..
add-task-bar refactor(e2e): extract ensureGlobalAddTaskBarOpen helper to reduce code duplication 2026-01-16 13:35:59 +01:00
app-features test(e2e): fix flaky focus mode tests 2026-01-16 22:34:50 +01:00
autocomplete Merge branch 'master' into feat/operation-logs 2026-01-03 18:51:51 +01:00
boards test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
break test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
daily-summary refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00
focus-mode fix(e2e): fix focus-mode test failures and incorrect expectations 2026-01-20 17:07:24 +01:00
import-export fix(backup): persist archive data to IndexedDB on local import 2026-01-08 16:12:13 +01:00
issue-provider-panel refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00
keyboard test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
menu chore: address code review feedback 2026-01-15 10:57:43 +01:00
migration test(e2e): add legacy data migration E2E test 2026-01-09 12:58:58 +01:00
navigation test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
notes test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
performance test(e2e): disable failing for now 2025-09-21 00:59:11 +02:00
planner chore(e2e): remove broken/empty skipped tests 2026-01-03 17:49:43 +01:00
plugins test(e2e): fix additional tests for tabbed config page 2026-01-17 13:26:57 +01:00
project chore(e2e): remove broken/empty skipped tests 2026-01-03 17:49:43 +01:00
recurring fix(repeat): add event loop yield and isPaused filter (#5976) 2026-01-13 18:26:45 +01:00
reminders test(e2e): fix additional tests for tabbed config page 2026-01-17 13:26:57 +01:00
schedule fix(schedule): maintain visibility during task overlap on schedule (#5887) 2026-01-10 15:47:57 +08:00
search refactor(e2e): extract ensureGlobalAddTaskBarOpen helper to reduce code duplication 2026-01-16 13:35:59 +01:00
settings test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
short-syntax refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00
sync test(e2e): improve sync test robustness with archive persistence waits 2026-01-20 17:07:24 +01:00
tags test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
task-basic Merge branch 'master' into feat/operation-logs 2026-01-10 13:06:20 +01:00
task-detail fix(e2e): use fill() for time input in task-detail tests 2026-01-06 13:45:30 +01:00
task-dragdrop refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00
task-list-basic Merge branch 'master' into feat/operation-logs 2026-01-03 18:51:51 +01:00
work-view test(e2e): fix add-to-today subtask tests 2026-01-16 22:34:50 +01:00
workflow test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
worklog test(e2e): add comprehensive E2E test coverage for core features 2026-01-12 15:11:27 +01:00
all-basic-routes-without-error.spec.ts refactor(e2e): replace waitForTimeout with condition-based waits 2026-01-03 15:29:38 +01:00