Repository navigation
e2e: fix the status-bar roll test race (main CI red after #189) - #191
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).