Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ describe('KanbanView — consecutive status moves on a task node (browser mode)'
// The critical assertion: each write sent the version RETURNED by the
// previous write, not a stale/repeated one — this is exactly the OCC
// mismatch the issue describes ("every subsequent status change fails").
expect(versionsSent).toEqual([1, 2]);
// The store applies each move before sending its write, so wait for the
// second write rather than asserting on the render's timing.
await waitFor(() => {
expect(versionsSent).toEqual([1, 2]);
});
expect(conflictNotifications.notifications).toEqual([]);
});

Expand Down Expand Up @@ -228,7 +232,12 @@ describe('KanbanView — consecutive status moves on a task node (browser mode)'
});
expect(cardsIn(columnFor(container, 'In Progress'))).toEqual([]);

expect(versionsSent).toEqual([1, 2]);
// The store applies the move before sending its write, so the card lands
// in its new column first — wait for the second write rather than
// asserting on the render's timing.
await waitFor(() => {
expect(versionsSent).toEqual([1, 2]);
});
expect(conflictNotifications.notifications).toEqual([]);
});

Expand Down