Repository navigation
test: close a card and walk trace threads from the reply a click now opens - #5679
Merged
Merged
Conversation
…opens #5410 made a click open a thread in its reply (`openingPart` in `thread/focus.js`). Two nightly journeys still expected a click to land on the thread: - `test_every_card_keeps_the_placement_rules` opens each card by its margin marker and closed it with one Escape. The first Escape now takes the caret out of the reply and stands the user on the thread; the second takes the card down. - `test_trace_comments_restore_an_exact_image_and_duplicate_named_element` clicks ‹ and › and expected the thread to hold focus before pressing `t`. Focus is now in the reply, where `t` would type, so the test checks the reply and presses Escape before walking. No product behavior changes. All six card-placement cases and the trace case fail at a02c20f and pass at its parent 3795150; with this change they pass on main. Refs #5657
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 nightly journeys still expected a click to land on a thread, which #5410 replaced: a click now opens a thread in its reply (
openingPartinbrowser/runtime/thread/focus.js). This updates both tests the same way #5664 updated the browser tests #5643 tracks. No product code changes.tests/journeys/margin/test_card_placement.py::test_every_card_keeps_the_placement_rules(all six cases). The test opens each card by its margin marker and closed it with one Escape, soexpect(card).to_be_hidden()timed out. Now the test checks that the caret is in the reply, then presses Escape twice: the first stands the user on the thread and the second takes the card down.tests/journeys/test_render_playwright_trace.py::test_trace_comments_restore_an_exact_image_and_duplicate_named_element. After a click on ‹ or ›, the test expected.lf-page-threadto hold focus and then pressedt. Focus is now in the reply, wheretwould type a letter. The test now checks the reply and presses Escape, which stands the user on the thread, before it walks witht.Run locally with
--run-nightly, all seven cases fail ata02c20ff0(#5410) and pass at its parent3795150ae. With this change they pass on mainccecec2c0.Refs #5657 — automated triage. This settles 7 of the 18 cases listed there. The other causes are linked from that issue.