mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
test(sync): verify non-task conflict convergence
This commit is contained in:
parent
0939f5af69
commit
5d568dcf8c
1 changed files with 8 additions and 1 deletions
|
|
@ -217,7 +217,14 @@ test.describe('@supersync incoming SYNC_IMPORT preserves non-task local work', (
|
|||
|
||||
await clientB.sync.syncAndWait();
|
||||
await expectClickCounterValue(clientB, counterTitle, 2);
|
||||
console.log('[Gate] ✓ Pending counter value survived resolution and re-sync');
|
||||
|
||||
// Prove convergence, not just Client B's local durability: Client A must
|
||||
// download the state B force-uploaded when it chose "Use My Data".
|
||||
await clientA.sync.syncAndWait();
|
||||
await clientA.page.goto('/#/tag/TODAY/tasks');
|
||||
await clientA.page.waitForURL(/(active\/tasks|tag\/TODAY\/tasks)/);
|
||||
await expectClickCounterValue(clientA, counterTitle, 2);
|
||||
console.log('[Gate] ✓ Pending counter value converged on both clients');
|
||||
} finally {
|
||||
if (clientA) await closeClient(clientA);
|
||||
if (clientB) await closeClient(clientB);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue