mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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) |
||
|---|---|---|
| .. | ||
| assertions.ts | ||
| check-webdav.ts | ||
| e2e-constants.ts | ||
| element-helpers.ts | ||
| index.ts | ||
| legacy-migration-helpers.ts | ||
| schedule-task-helper.ts | ||
| supersync-assertions.ts | ||
| supersync-helpers.ts | ||
| sync-helpers.ts | ||
| time-input-helper.ts | ||
| tour-helpers.ts | ||
| waits.ts | ||