Skip to content

test: count the margin-entry gallery's faces against its samples, not a fixed 44 - #6393

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6389
Nov 18, 2026
Merged

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

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6336 added a "Count and news" sample to the feature gallery's Face anatomy group, taking the margin-entry gallery from 22 samples to 23. test_complete_views_restore_native_values_in_wrapped_layouts serves a page with two galleries (faces-one and faces-two in INITIAL_DRAWING_PAGE) and asserted 44 .margin-entry-gallery-face elements, so it read 46 (two per new sample, not a duplicate face) and failed in both widths on Linux and macOS since scheduled run 44289276069. The new sample is what #6336 intended, so the gallery stays and the test changes, as #6347 did for the export test.

Instead of moving the literal to 46, the test now asserts that each of the two galleries draws one face per .margin-entry-gallery-item, and that both draw the same non-zero number. That keeps what the count protected (no face drawn twice, no gallery left empty after the upgrade) without breaking on the next sample the gallery gains.

Locally both [1200] and [390] fail on main (assert 46 == 44) and pass with this change.

Closes #6389 — automated triage

… a fixed 44

#6336 added a "Count and news" sample to the feature gallery, taking it
from 22 samples to 23. The wrapped-layouts journey test draws two
galleries and asserted 44 faces, so it read 46 and failed on Linux and
macOS. The sample is behavior #6336 meant to add, so the test changes.

Rather than move the literal to 46, the test now checks that each of the
page's two galleries draws one face per sample item, the same in both.
That still catches a face drawn twice or a gallery left empty, without
breaking on the next sample added to the gallery.

Closes #6389
@leaf-agent
leaf-agent merged commit bb2dbd6 into main Nov 18, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6389 branch November 18, 2026 16:42
leaf-agent added a commit that referenced this pull request Nov 21, 2026
…t's gallery against its samples (#6637)

Two browser tests that fail on `main` since push run
[44843074595](https://github.com/max-sixty/leaf/actions/runs/44843074595)
(`1b70176f1`) broke on changes that moved the interface on purpose. This
PR updates both tests to the new behavior and changes no product code.

-
**`test_looking_at_an_attached_image_keeps_the_draft_where_it_stands`**
clicked the draft's attached picture at its foot's start (3 px in, 3 px
up). Since #6622 the panel's fold mark rides the box's top-left corner
and shows while the pointer is near it. Measured in Chromium, the mark's
box (y 833–853) reaches into the picture's bottom edge (y 804–834), and
`elementFromPoint` returns the mark for the picture's lowest three pixel
rows at that x. So the click hit the mark, and Playwright timed out
after 120 s. The test now clicks the middle of the picture's foot, which
is clear of the removal mark on its top-right corner and of the fold
mark.
-
**`test_an_export_reveals_its_widgets_and_releases_readable_failure_fallback`**
asserted 23 margin-entry gallery items. #6627 added a News sample on
purpose, so the gallery now draws 24. This is the second time the
literal has moved (#6347 set it to 23). The test now checks what that
count protected: both of the page's galleries draw the same non-empty
set of samples, with one face per item. #6393 made the same change to
the journey test.

Both tests fail on current `main` and pass with this change.

The run's third failure,
`test_resolving_a_thread_restyles_what_focus_marks` (255 restyles at 4
sections, 313 at 24), did not reproduce locally. It is tracked
separately from #6636.

One finding for #6622's author: its description says the fold mark
stands "just below the picture's left edge, without overlap". The
measurement above shows the mark overlapping the picture by about 3 px,
so a press on the bottom-left corner of an attached picture folds the
panel instead of opening the viewer. This PR doesn't move the mark,
because where the mark stands is a placement choice for #6622's author.

Refs #6636 — 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.

test_complete_views_restore_native_values_in_wrapped_layouts: margin-entry gallery draws 46 faces, not 44, since #6336

1 participant