Repository navigation
test: update three nightly journeys to #5392's news drawn at once in the thread being typed in - #5692
Merged
Merged
Conversation
…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
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.
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, renamedtest_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-workingnever 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