Skip to content

e2e: fix the status-bar roll test race (main CI red after #189) - #191

Merged
firegiant9000 merged 2 commits into
mainfrom
fix-e2e-status-bar-race
Nov 19, 2026
Merged

firegiant9000 merged 2 commits into
mainfrom
fix-e2e-status-bar-race

Conversation

@firegiant9000

Copy link
Copy Markdown
Owner

Main CI went red at 79bac64 (run 44366102945). The only failure was the e2e test "a roll from any tab shows in the status bar" in src/Ui/e2e/play.e2e.tsx; build-test failed only because it needs gui.

Cause: the test ticks Equip and opens Play right away. ActionsPanel renders nothing until the character has an attack (PlayPanels.tsx:785), so when the equip save had not landed yet, the one-shot getByRole for "Attacks and actions" threw before findByRole could retry. The failure dump shows Play selected with HP, Conditions, Abilities and Companions but no actions region. This is a test race, not an app bug.

Fix: wrap the lookup in waitFor, the same guard the Blade test in this file already uses at line 51. Test-only; CHANGELOG notes it.

Gate (local, scripts/gate.ps1): npm ci, lint, UI build, .NET build, e2e 82/82 green. Unit tests, a11y and GUI steps skipped (no app code changed).

@firegiant9000
firegiant9000 merged commit eb4d30f into main Nov 19, 2026
2 of 5 checks passed
@firegiant9000
firegiant9000 deleted the fix-e2e-status-bar-race branch November 19, 2026 17:46
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