Skip to content

Fix three browser tests that fail on main where the page behaves - #5840

Merged
max-sixty merged 6 commits into
mainfrom
tend-missed-failures
Nov 11, 2026
Merged

max-sixty merged 6 commits into
mainfrom
tend-missed-failures

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Three browser tests fail intermittently on main though the page does what each protects. Each failure came from where the test, or the shift watch every browser test runs under, looked:

  • test_sending_flashes_only_the_new_message[card] checks that a send flashes only the new message by comparing the colour at the message's head and foot. For the 300 ms that the send's tween (box-motion.js) carries the reply box down, the reply box covers that foot. The test now samples the middle of the header's row and of the words' row.
  • test_a_resolve_s_notice_stands_for_that_resolve_alone expects the one move a refused Resolve makes without input. A refusal landing while the Resolve's own motion still ran rode that motion, so no finding came and the test failed on a bare assert ([]). The refusal now waits for the page to rest.
  • test_looking_at_an_attached_image_keeps_the_draft_where_it_stands failed at teardown on the panel's back button "moved without input". The server's answer lands mid-tween, and box-motion restarts each running part from where it is drawn, so the panel moves smoothly; the shift watch read each restart as new motion. It now reads an effect begun in the cancelling task, on the same target, from where the cancelled one was drawn and to the same end, as that motion continuing. A restart from elsewhere, or one ending farther away, is still a finding, and new arms in test_render_shift_watch.py hold all three cases.

Locally on main, the flash and attached-image tests failed 5–15 and 6 of 18 copies; here each of the three passes 18 of 18 (leaf-dev flake), with the focused shift-watch selection passing. Part of #5827. Part of #5780: its other three macOS failures name the same back button but pass locally on main, so the next macOS scheduled run is what confirms them. Max asked for main's failures to be fixed.

This was written by Claude Code on behalf of max-sixty

…ere it is drawn as the same motion

A send from the floating panel opens its thread view, and box-motion.js carries
the view up over a 300 ms tween. The server's answer usually lands during that
tween. When the page adopts the reading, the re-rendered message controls change
the box's layout, and box-motion cancels every running part and starts each one
again from where it is drawn. Each part's drawn position runs on smoothly, so
the panel holds still under the user's aim while the send's ride continues
through the server's answer.

The shift watch reported that ride as `button.lf-fp-back ... moved without
input` at teardown. It read each replacement as new motion: news had sealed the
send's rendering, so nothing owned the replacement, and the credit loop had no
sample of it from before the cut. Only the cancelled effect's return to
`translate: none`, a value no frame drew, was credited, which left the
replacement's whole translation as the residual.

The watch now treats an effect that a script begins in the task that cancelled
another as the continuation of that motion, when it has the same target and
moving properties, ends at the same values in its last keyframe, and starts
within a pixel of each translation the cancelled effect drew. The replacement
takes the cancelled effect's ledger up to the cut, its beginning and its owners,
and the credit loop and a finding's evidence read the two as one effect. A
replacement that starts elsewhere (a restart) or ends elsewhere (news sending
the motion farther) is still new motion, and the watch still reports it.

The news stand-in in test_render_shift_watch.py gains arms for each case: a
press's slide through a registered property that its translate reads, as
box-motion carries a part, which news re-times from where it is drawn (no
finding), restarts (a finding), or sends farther (a finding). A translation
paints no layout shift, which every passive verdict starts from, so a box no
reader reads slides beside the line meanwhile.
… continuations

An effect a script plays again after an earlier one continued it begins a
motion of its own, so its old link no longer leads anywhere; left in place, two
effects that took turns continuing each other would loop `continued`.
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.

2 participants