Skip to content

test: expect the feature gallery's 23 samples in the export test after #6336 - #6347

Merged
leaf-agent merged 1 commit into
mainfrom
fix/export-gallery-count
Nov 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/export-gallery-count

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6336 added a "Count and news" sample to the feature gallery's Face anatomy group (examples/developer/feature-gallery.page/margin-entry-gallery-view.js), so it shows a margin entry's unread dot next to its count. That brings the gallery from 22 samples to 23. test_an_export_reveals_its_widgets_and_releases_readable_failure_fallback checks that an export draws the full gallery, and it still expected 22. It failed on main in push run 44230156303 with Locator expected to have count '22' / Actual value: 23. The test now expects 23. The sample is the new behavior #6336 meant to add, so the test changes and the gallery stays as it is.

Locally, the test fails on main (Actual value: 23) and passes with this change.

Refs #3985 — automated triage

…#6336

#6336 added a "Count and news" sample to the gallery's Face anatomy
group, so an export now draws 23 gallery items, not 22.

Refs #3985
@leaf-agent
leaf-agent merged commit 758b8b0 into main Nov 18, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/export-gallery-count branch November 18, 2026 06:12
leaf-agent added a commit that referenced this pull request Nov 18, 2026
… a fixed 44 (#6393)

#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](https://github.com/max-sixty/leaf/actions/runs/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

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

1 participant