super-productivity/e2e/utils
Johannes Millan ef40c7ba6a fix(sync): ensure pending writes complete before conflict detection
Fix race condition where sync could start before local operation writes
completed to IndexedDB, causing conflict detection to miss pending ops.

- Add OperationWriteFlushService that uses sp_op_log lock to ensure all
  pending writes complete before reading from IndexedDB
- Call flushPendingWrites() before conflict detection in sync service
- Add retry with exponential backoff to createTestUser for rate limiting
- Add unit tests for flush service and sync ordering

The flush mechanism works by acquiring the same lock used by writeOperation().
Since effects use concatMap and Web Locks API guarantees FIFO ordering,
acquiring the lock means all prior writes have completed.
2025-12-13 11:50:36 +01:00
..
check-webdav.ts test(e2e): try to fix e2e tests 2025-12-10 21:26:48 +01:00
supersync-helpers.ts fix(sync): ensure pending writes complete before conflict detection 2025-12-13 11:50:36 +01:00
waits.ts refactor(e2e): improve test reliability with deterministic waits 2025-12-11 18:47:56 +01:00