Merge pull request #6137 from super-productivity/claude/fix-failing-eye-tests-AqO9x

test(sync): increase wait buffer for TODAY_TAG repair effect
This commit is contained in:
Johannes Millan 2026-01-24 12:19:46 +01:00 committed by GitHub
commit d1efbb1677
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1469,10 +1469,12 @@ test.describe('@supersync SuperSync LWW Conflict Resolution', () => {
await clientA.sync.syncAndWait();
console.log('[TodayDeleteRace] Client A synced, LWW applied');
// Wait for post-sync cooldown (2s) to ensure repair effect runs if needed.
// Wait for post-sync cooldown (2s) plus buffer for repair effect to run.
// The meta-reducer should add task to TODAY_TAG.taskIds immediately, but
// the repair effect provides a safety net with a 2-second delay.
await clientA.page.waitForTimeout(2500);
// Extra buffer (1.5s) ensures effect has time to dispatch and render
// even under CI resource contention.
await clientA.page.waitForTimeout(3500);
console.log('[TodayDeleteRace] Post-sync cooldown complete');
// 8. CRITICAL ASSERTION: Task should appear in TODAY view on Client A