Skip to content

test: update three nightly journeys to #5392's news drawn at once in the thread being typed in - #5692

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5683
Nov 8, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Three nightly journey cases have failed since #5392 because each still expected the old hold of news in the thread the user is typing in. #5392 deliberately draws that news at once, as a chat does: the control the user is on stays still while what stands above it scrolls up by the growth, and on a page too short to scroll that far the control moves by the rest (browser/AGENTS.md, "News moves what the reader reads only in the thread they are in"). This PR changes only the tests. Each case failed on main before the change and passes after it, run locally with the journey tier.

  • test_live_news_keeps_the_reading_draft_and_resting_target, renamed test_live_news_keeps_the_reading_draft_in_the_thread_being_written_in. It expected the working indicator and a tall reply to wait behind "1 new", and the pointer resting on Resolve to stay over it. On main the working indicator draws, so .lf-thread-working never reached a count of 0. Now the test expects the working state and the reply to draw at once. It checks that the editor, its words and selection, and the reading line stay where they were through the working state, the reply and a source revision, and that Resolve, which sits above the editor, scrolls up by more than 100px. The pointer assertion and the notice press are removed, because the rule now holds the editor still and not what stands above it.
  • test_native_reply_edits_after_semantic_paint_keep_the_first_line[seat-delete-desktop] and [seat-mirrored-composing-android]. The agent's reply now draws above the seated box. On the short seat page the page can't scroll, so the box moves down by 69–72px, and the shift watch reported that move at teardown. The seat page now has room below, so the page scrolls by the reply and the box stays still, which is what the test's later native edits assume. All eight parametrized cases pass.

The fourth case the issue names, [margin-delete-desktop], had a separate cause and was already fixed by #5685.

Closes #5683 — automated triage

…ng written in

#5392 draws an agent's news at once in the thread the user is in, holding
the control they are on still by scrolling what stands above it, or moving
the control by the rest where the page can't scroll.

- test_live_news_keeps_the_reading_draft_and_resting_target, now
  test_live_news_keeps_the_reading_draft_in_the_thread_being_written_in:
  guarded the working state and a tall reply waiting behind "1 new" while
  the user typed in the thread, with the pointer resting on Resolve kept
  under it. Now the working state and the reply draw at once, the editor,
  its selection and the reading line stay, and Resolve, above the editor,
  scrolls up by the growth. The pointer assertion and the notice press go,
  since the rule holds the editor rather than what stands above it.
- test_native_reply_edits_after_semantic_paint_keep_the_first_line, seat
  cases: the agent's reply now draws above the box, and on the short seat
  page the box moved down by it, which the shift watch reported at
  teardown. The seat page gains room below, so the page scrolls by the
  reply and the box holds still, as the test's native edits assume.

Closes #5683
@leaf-agent
leaf-agent merged commit 0534adc into main Nov 8, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5683 branch November 8, 2026 00:37
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.

Live-news reading and seated native-reply journeys fail on main since #5392 drew news at once

1 participant