Skip to content

test: update ten nightly journeys to the behavior #5448, #5508, #5537, #5551, #5552 and #5566 chose - #5685

Merged
leaf-agent merged 6 commits into
mainfrom
fix/issue-5658-journey-expectations
Nov 7, 2026
Merged

leaf-agent merged 6 commits into
mainfrom
fix/issue-5658-journey-expectations

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Ten of #5658's nightly journey cases still expected behavior that a recent change replaced on purpose. This PR updates those tests to what each change intended. One example page also changes: the feature gallery had lost a face that the server would draw. Each case was bisected locally to the first commit where it fails and checked against that commit's parent, which passes. Each fails on main 02a1e05cb and passes on this branch.

Case Since What changed
test_render_widgets.py::test_notification_configuration_becomes_a_commentable_local_artifact #5508 Every playground choice now has its own id. The receipt's comment anchors on the Banner choice that holds it (format-banner), not on notification-simulator.
test_render_gate.py::test_every_table_the_theme_sets_honestly_passes_the_gate #5566 The fixture's available <figure> holds a question whose words start at the figure's edge, and #5566's new words-off-column advice flags exactly that. The journey checks tables, so it now leaves that question out. The browser test that measures the question's table inside the figure keeps it.
test_render_margin.py::test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps #5537 Beside its passage, a card now holds its reply's foot while the user writes in it. The test now steps onto the thread with Escape before reading, as #5537's own tests do. It checks that each wrap, a long draft and the answer after a send grow the card upward. It is renamed …holds_its_top_while_read_and_its_reply_while_written.
test_thread_response_continuity.py::…keep_the_first_line[margin-delete-desktop] #5537 Same rule: Backspace in a margin card's reply keeps the reply's foot still, so the margin case reads the foot. The seat cases are unchanged.
navigation/test_key_surfaces.py::test_user_news_interrupts_and_then_restores_background_news #5448 The panel's key now stands with Comment after the field's words, so a notice reads Agent replied — open Threads · Comment… c.
test_page_holds_still.py::…[message-reply-below-chromium], […-firefox] #5551 A thread's reply box under the floating panel now counts as unseen. A clicked message therefore stays still as an answer joins below it, the strict xfail passed, and its entries leave MOVES_ON_MAIN.
test_render_navigation.py::test_the_feature_gallery_exercises_its_core_journeys #5552 progressFace reads a workflow's at_work, which the server stamps on every served workflow. The gallery's margin atlas builds its sample workflows from a stage alone, so its Working samples had lost the working face. The sample now carries at_work as the server would stamp it (examples/developer/feature-gallery.page/widgets/lf-margin-entry-gallery.js).

The other #5658 cases are handled elsewhere. #5684 (merged) fixed the fixture-resource case. A separate PR widens --wide for #5611's diff gutter. The message-edit-above cases of test_page_holds_still.py come from a runtime regression in #5551, which has its own cause issue.

Refs #5658 — automated triage

…at holds it

#5508 gave every playground choice its own id so a comment names the
choice it points at. The notification example's receipt copy stands in
the Banner choice (format-banner), so its comment now anchors there
rather than on notification-simulator, as #5508 intended.

Refs #5658
…vises against

#5566 added the words-off-column advice for a wrapper granted room whose
words leave the column's start edge. FRAMED_TABLES_PAGE's available
figure holds a question, whose heading and options start at the
figure's edge, so the advice fires on the journey's page, as #5566
meant it to. The journey reads the theme's tables, so it now leaves
that question out; the browser test that measures the question's table
inside the figure keeps it.

Refs #5658
…5537 chose

#5537 made a margin card beside its passage hold its reply's foot while a
text field in it has focus, so the line being typed stays still and the
card grows up. Two journeys still read the top-held rule it replaced:

- test_margin_card_holds_its_top_as_a_turn_arrives_and_as_a_reply_wraps
  opened the card by a click, which since #5410 leaves the caret in the
  reply, then expected a turn to extend the card downward, each wrap of
  the reply to push Send down, and an answer after a send to keep the
  card's top. It now stands the user on the thread with Escape before
  the first reading, as #5537's browser tests do, and reads the reply's
  foot holding while it is written in: each wrap and the answer after a
  send grow the card up, and a long draft fills it from the window's
  head to the reply's foot. It is renamed for what it now checks.
- test_native_reply_edits_after_semantic_paint_keep_the_first_line's
  margin case expected the reply's top to hold as Backspace shortened
  the draft; it now reads the reply's foot holding there.

Refs #5658
…5552 reads

#5552 made progressFace read a workflow's at_work, which the server
stamps on every served workflow (served_state/work.py), instead of its
stage. The feature gallery's margin-entry atlas builds its sample
workflows itself from a stage alone, so its Working and Working ·
fallback samples lost the working face, and
test_the_feature_gallery_exercises_its_core_journeys timed out waiting
for data-lf-agent-workflow=working. The sample now carries at_work as
the server would stamp it.

Refs #5658
…5448 chose

#5448 stood the panel's key with Comment after the words the field says
at rest. A notice offering no press now reads "Agent replied — open
Threads · Comment… c", so
test_user_news_interrupts_and_then_restores_background_news expects
that suffix after each notice's words.

Refs #5658
…ow it

#5551 cut a cover's box from the cover to the window edge it stands
nearer, so a thread's reply box under the floating panel now counts
unseen, and the keep holds the thread the user stands on rather than
that reply box. A message clicked in the thread then stays where it was
as the answer joins below it, where it used to scroll 195px up, so the
strict xfail on message-reply-below passed in both engines. Its entries
leave MOVES_ON_MAIN.

Refs #5658
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Merged at aa2f18a76 with test red on two cases this PR doesn't claim or touch: test_thread_response_continuity.py::…keep_the_first_line[seat-delete-desktop] and [seat-mirrored-composing-android]. Each fails at teardown with leaf-text.lf-ui moved without input by (0, 69)px / (0, 72)px. Today's scheduled run on main (42365682113) fails both with the same message, and #5683 tracks them as a regression from #5392.

The cases this PR claims passed at this head. In the PR's run: the receipt, table-gate, margin-card, key-surfaces and margin-delete-desktop cases. Run locally with --run-nightly: test_page_holds_still.py[message-reply-below-chromium] and [-firefox], and test_the_feature_gallery_exercises_its_core_journeys.

leaf-agent added a commit that referenced this pull request Nov 8, 2026
…the thread being typed in (#5692)

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

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 8, 2026
…it grows (#5693)

Since #5551, a reply box under the floating panel counts as unseen. When
the user clicked a message's words, the keep therefore fell back from
the thread's reply box to the thread's top, and a message above the
clicked one that grew by 63px pushed the clicked message down by 63px.
Now the keep first holds the caret that the click left in the focused
container, as long as the caret lies outside the box the container
stands at (`standsAt`) and the container isn't a text field. So the
clicked message stays put when a message above it grows or an answer
joins below it, and the reply box moves instead. This matches the rule
`thread/reply-landing.js` already states ("a message they stand on stays
and the box below it moves down"). A thread focused with its caret in
the reply box, or with no caret in it, keeps the reply box's hold as
before, so a send still holds the emptied box.

#5551's rule that a box under the panel counts as unseen still holds.
This change gives the keep a better place than the thread's top when
that rule applies.

Verification:
- `test_page_holds_still.py::…[message-edit-above-chromium]` and
`[message-edit-above-firefox]` fail on main `0534adc7d` with `the place
moved 63.0px`. Both pass with this change.
- The whole of `tests/journeys/test_page_holds_still.py --run-nightly`
passes: 94 passed, and its 14 strict xfails still fail as recorded. That
includes the `message-reply-below` cases, which #5685 had just
un-xfailed.
- `pnpm run test:runtime` (896 pass) and `pnpm run check:browser` pass.
- One failure came up in the held-news browser tests I ran,
`test_summaries.py::test_a_root_summary_keeps_thread_actions_outside_its_fold[1400-True-10]`
(`labelLines` 3.0 > 1.1). It fails the same way on main without this
change.

One known gap: if the change rewrites the very words the caret sits in,
the caret's range leaves with them, so this hold keeps nothing and the
browser's scroll anchoring takes over.

Closes #5687 — automated triage

Co-authored-by: leaf-agent <[email protected]>
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