Repository navigation
Make the Versions-walk and draft-Retry test assertions able to fail - #5422
Merged
Merged
Conversation
… names Two browser tests asserted something that could not fail: - test_a_key_on_screen_is_a_key_that_works checked that the command reference names neither `version.later` nor `version.earlier`, ids #3100 removed with the classic chrome. The Versions walk is now `panel.floating.versions.pick`, declared only while the Versions list stands in the menu, so the test now checks that the reference doesn't name that. - The two refused-draft-save tests promise the draft "reopens with Retry", but `draft_control(page, "retry", ...)` selects the save button, which every open editor shows; only its name says Retry, and only after a refused save (lf-draft.js, `draft.save`'s title). They now assert the accessible name. The behavior these protect is unchanged; the assertions now hold it.
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.
Two browser tests checked things that could not fail. This makes them check what they claim, and no behavior changes.
test_a_key_on_screen_is_a_key_that_works(tests/browser/navigation/test_key_surfaces.py) asserted that the command reference names neitherversion.laternorversion.earlier. Neither id exists any more: Remove the classic chrome: the floating panel is Leaf's only chrome #3100 removed them with the classic chrome. The Versions walk the comment describes ispanel.floating.versions.pick(browser/runtime/floating-panel.js), which is declared only while the Versions list stands in the menu, so the test now asserts that the reference doesn't name it.tests/browser/drafts/test_draft_editing.py) say the draft "reopens with Retry", butdraft_control(page, "retry", …)selects the save button, which every open editor shows. Only the button's name says Retry, and only after a refused save (draft.save'stitleinlf-draft.js). Both tests now assert that the accessible name contains Retry.All three tests pass locally on the changed nodes. The Retry assertion tells the two states apart, since before a refusal the same button is named Save.