mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
test(e2e): add archive persistence wait after remote sync
Adds waitForArchivePersistence() after remote sync in webdav-sync-archive test to ensure IndexedDB archive writes complete before verification. This prevents race conditions where verification runs before archive data is fully persisted, matching the pattern used after local archive operations.
This commit is contained in:
parent
92ed8322f5
commit
a910183c10
1 changed files with 3 additions and 0 deletions
|
|
@ -185,6 +185,9 @@ test.describe('@webdav WebDAV Archive Sync', () => {
|
|||
await waitForSyncComplete(pageA, syncPageA);
|
||||
console.log('[Archive Diff] Client A synced to get B changes');
|
||||
|
||||
// Wait for archive persistence after remote sync (same as after local archive operations)
|
||||
await waitForArchivePersistence(pageA);
|
||||
|
||||
// --- Verify final state ---
|
||||
// Both clients should have only Task2 visible
|
||||
await expect(pageA.locator('task')).toHaveCount(1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue