Flaky e2e test: my-games.spec.ts sees two "No games with this result." on a filter switch #406
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amaurycoudr/chess-project#406
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
In CI,
apps/e2e/tests/my-games.spec.ts› "lists a resigned Game for both Players with their own result under each filter, and its link reads anywhere" fails intermittently at line 60, right after switching the filter to Won:Where seen
e2e). The retry, job 1142, passed with no code change. Main's pipelines were green on the same test, so it is a flake, not a regression.Likely cause
apps/front/src/games/my-games.ui.tsxmaps every filter to aTabsContent, and each panel renders the samerowsand counts for the current filter. Base UI keeps the leaving panel mounted for a moment during the tab change. So the old "All games" panel briefly shows the Won filter's empty state beside the new panel.Cost
A manual rerun each time it hits, holding the merge request until the e2e job passes.
Expected
Only the active filter's panel shows rows or the empty state, so the test passes deterministically. Reproduce by looping the spec (
--repeat-each) before fixing.Fixed on main by
4623f0b0: only the chosen filter's panel renders rows or the empty-result line, so a panel still transitioning out holds nothing. Looping the spec with --repeat-each=20 passed 20/20.