super-productivity/e2e
Johannes Millan 3d4bfb5637 fix(sync): improve robustness of sync and counter operations
Code review improvements addressing critical and high priority issues:

Archive Handler:
- Rollback BOTH archiveYoung and archiveOld on flush failure
- Prevents data loss when partial write occurs

Cache Invalidation:
- Add _unsyncedCache invalidation in deleteOpsWhere
- Prevents stale data when deleted ops include unsynced operations

Simple Counter:
- Extract _getCounterValue helper to reduce code duplication
- Use selectSimpleCounterById (O(1)) instead of selectAllSimpleCounters+find (O(n))
- Update tests to properly mock both selectors

Operation Log Sync:
- Add infinite loop prevention when force download returns no clocks
- Add GREATER_THAN corruption detection (treats as CONCURRENT to be safe)

ESLint Hydration Guard Rule:
- Fix combineLatest detection at root level vs nested in operator callbacks
- Add comprehensive test suite (17 test cases)

E2E Tests:
- Fix flaky reminders-schedule-page tests (tasks disappear after scheduling)
2025-12-19 11:42:56 +01:00
..
constants refactor(e2e): improve test reliability with deterministic waits 2025-12-11 18:47:56 +01:00
fixtures fix(e2e): reduce console log noise with optional E2E_VERBOSE flag 2025-12-12 20:48:13 +01:00
helpers test: make e2e less flaky 2025-11-14 15:43:22 +01:00
pages fix(e2e): improve supersync test stability and build compatibility 2025-12-19 09:59:44 +01:00
tests fix(sync): improve robustness of sync and counter operations 2025-12-19 11:42:56 +01:00
utils fix(sync): perform archive flush synchronously to prevent DB lock error 2025-12-17 16:42:59 +01:00
.gitignore build(ci): resolve e2e webserver timeout issues 2025-08-03 12:36:02 +02:00
global-setup.ts test(e2e): remove console.log statements and replace console.error with throw 2025-08-02 12:25:21 +02:00
playwright.config.ts test(e2e): try to fix e2e tests 2025-12-10 21:26:48 +01:00
tsconfig.json refactor: move tests 2025-08-02 11:37:25 +02:00