Skip to content

💚 Steady the Duplicates merge journey test - #126

Merged
simonhull merged 1 commit into
mainfrom
fix/duplicates-born-flake
Nov 24, 2026
Merged

simonhull merged 1 commit into
mainfrom
fix/duplicates-born-flake

Conversation

@simonhull

Copy link
Copy Markdown
Owner

server.e2e.ts › "after a merge the list is born at ‹ All duplicates" failed often in CI (and 3–6 runs in 12 locally, on main).

Why: expectBorn measured where the headline should be born before clicking. When the pressed button is partly covered (the island and toasts at the bottom), Playwright's click scrolls again with another alignment before it dispatches. Here the group page moved from 216 to 54, so the link the list is born at was 162 px lower at the press than when measured. The app was right; the test's measurement was stale.

Fix: expectBorn records the place at the click itself (a capture listener, kept on window since the page then navigates away).

36/36 runs of the test pass, both specs that use expectBorn pass 5× each, the full e2e suite passes (210), and web:check passes.

@simonhull
simonhull merged commit cc97e7b into main Nov 24, 2026
10 checks passed
@simonhull
simonhull deleted the fix/duplicates-born-flake branch November 24, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant