Skip to content

test: close a card and walk trace threads from the reply a click now opens - #5679

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5657
Nov 7, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5657

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Two nightly journeys still expected a click to land on a thread, which #5410 replaced: a click now opens a thread in its reply (openingPart in browser/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, so expect(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-thread to hold focus and then pressed t. Focus is now in the reply, where t would type a letter. The test now checks the reply and presses Escape, which stands the user on the thread, before it walks with t.

Run locally with --run-nightly, all seven cases fail at a02c20ff0 (#5410) and pass at its parent 3795150ae. With this change they pass on main ccecec2c0.

Refs #5657 — automated triage. This settles 7 of the 18 cases listed there. The other causes are linked from that issue.

…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
@leaf-agent
leaf-agent merged commit 02a1e05 into main Nov 7, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5657 branch November 7, 2026 20:39
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