Repository navigation
test: expect the feature gallery's 23 samples in the export test after #6336 - #6347
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#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_fallbackchecks that an export draws the full gallery, and it still expected 22. It failed on main in push run 44230156303 withLocator 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