Skip to content

test: expect the floating panel's ← → tabs row in the ? reference - #6809

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

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6762 added a panel.floating.tabs binding (← → turns the panel's tabs, floating-panel.js). The ? reference lists it under "In the floating panel", after the four row keys. test_the_reference_lists_each_of_the_panel_s_keys_once still expected only the four row keys, so it failed on main in run 45086686733. The new row is what #6762 intended, and the behavior this test protects (each key listed once) still holds. So the fix updates the test's expectation to include the tabs row with its ← → keys, rather than changing the runtime.

The test fails by node id on main at 017ddeccf with the same diff as CI ("Left contains one more item: ('panel.floating.tabs', 'Move through the tabs')"). It passes on this branch.

Refs #6805 — automated triage

#6762 gave the floating panel a ← → binding that turns its tabs, and the
? reference lists it under "In the floating panel" after the four row keys.
test_the_reference_lists_each_of_the_panel_s_keys_once still expected the
four row keys alone. The behavior it protects, each key listed once, is
unchanged; the expectation now includes the tabs row.

Refs #6805
@leaf-agent
leaf-agent merged commit cd774a1 into main Nov 23, 2026
7 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6805 branch November 23, 2026 02:06
leaf-agent added a commit that referenced this pull request Nov 23, 2026
…restyle test (#6814)

`test_a_page_mode_restyles_only_what_the_pointer_is_over` has failed on
every run since #6788 (`f014d63e1`), with one style recalc of 601
elements against its cap of 171 (684 / 4). The test entered Capture area
by clicking the row in the annotate menu, so the pointer rested wherever
that row happened to stand once the menu closed. #6788 changed the
menu's rows and moved the Capture row 30 px lower (y 716 → 746). That
spot is in the test page's `<section>`, in the gap between two
paragraphs, not on a paragraph. When the pointer rests on a box like
that, Chromium restyles everything the box holds. The header of
`browser/styles/components/integration.css` already states this cost.
Capture area itself behaves as before.

The test now focuses the row and presses Enter, with the pointer resting
on the words the way it does for each mode before it. So it measures
what the pointer is over again, not the menu's layout.

- Bisected on CI's failing step: `874e527fc` passes and `f014d63e1`
fails, and each commit gave the same result on every run.
- On current `main`, the test failed 3 of 3 runs before this change and
passes 3 of 3 after it.
- The test still catches a crosshair stated on every element: with
`:root[data-lf-region-capture] * { cursor: crosshair; }` appended to
`integration.css`, it fails at 694.

The run's other failure,
`test_the_reference_lists_each_of_the_panel_s_keys_once`, was fixed by
#6809 and passes on current `main`.

Refs #6813 — 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