Skip to content

test: serve each floating-box motion example its own page - #6875

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6869
Nov 23, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_every_part_of_a_floating_box_moves_one_way_per_input served one page for all of its Hypothesis examples. The page's server keeps each field's words as a draft, so after a comment example ran, every later page reopened that comment box with focus in it. The box stands beside LOW_PASSAGE_PAGE's low passage, under the floating panel's row. Since #6815, focus landing on a place only the panel hides folds the panel to its leaf (giveWay in browser/runtime/floating-panel.js), so the next panel example found .lf-fp-field folded away (display: none) and timed out pressing it. Each example now serves its own page, so no example inherits another's drafts. That makes the shared-draft comment unnecessary, so this removes it.

The runtime is unchanged. Folding the panel there is what #6815 set out to do, and the test's other case, which serves its own page, still opens the panel's field. Locally the property test failed in Chromium on the panel example (gap=0, draft='', edits=[('Shift+Enter',)]) after 258 s. With this change it passes in both [browser] and [firefox_browser] in 95 s together.

Reproduction

A probe on one served page ran a comment example with a draft, then opened a new page. That page loaded with the comment box's field focused and the panel at data-lf-rest="mark". Its field measured 0×0 with display: none. A panel example on the same server timed out on the click, as in run 45159811021.

Closes #6869 — automated triage

The property test served one page for all its examples, and the page's
server keeps each field's words as a draft. So a comment example left a
draft that reopened its comment box, with focus, on every later
example's page. That box stands beside the low passage under the
panel's row, and since #6815 focus landing there folds the panel to its
leaf. The next panel example then pressed a field the fold had hidden
and timed out. Each example now serves a fresh page. No runtime
behavior changes. The panel's fold is #6815's intended behavior.

Closes #6869
@leaf-agent
leaf-agent merged commit 0fe58f0 into main Nov 23, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6869 branch November 23, 2026 15:42
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.

test_every_part_of_a_floating_box_moves_one_way_per_input: the panel's comment field is never visible to click

1 participant