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:
Johannes Millan 2026-01-20 18:56:55 +01:00
parent 92ed8322f5
commit a910183c10

View file

@ -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);