Repository navigation
tests: add screenshot fixtures for text size changes - #2466
Merged
Merged
Conversation
scottanderson
force-pushed
the
style-fixtures
branch
from
October 19, 2026 07:22
859572c to
70e36c3
Compare
Member
|
looks outdated? some screenshots must have been taken before e.g. large font shape fixes |
Add a screenshot test that draws the peek over the watchface once per content size, with a title and subtitle and with a two-line title. The peek box keeps the default size's height and icon width at every size. At Extra Large this cuts the title to one line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Scott Anderson <pebbleos@gitbran.ch>
Render the emoji set in Gothic 36 text, next to the existing emoji fonts, to show which glyphs 36 point text gets. Text looks its emoji up by size among the system emoji fonts, so the test uses the fonts fake, which serves them; the existing tests draw the emoji fonts directly and don't change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Scott Anderson <pebbleos@gitbran.ch>
Render a notification whose title and body mix text and emoji, at every text size the watch offers. At Extra Large the body is 36 point text, which has no emoji font of its own, so its emoji come out smaller than at Large. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Scott Anderson <pebbleos@gitbran.ch>
Render a screen of rows that have only a title, at every text size the watch offers. Settings and Quiet Time give these rows the basic cell height, so the test does too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Scott Anderson <pebbleos@gitbran.ch>
scottanderson
force-pushed
the
style-fixtures
branch
from
October 20, 2026 18:09
70e36c3 to
6ab70fa
Compare
Contributor
Author
|
I've rebased this PR onto #2479 to resolve the outdated imagery. |
gmarull
approved these changes
Oct 20, 2026
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.
Adds host screenshot tests for screens that change with the text size. Upcoming UI PRs can then show their before and after images side by side. No firmware changes.
tests/emoji_fonts: emoji in Gothic 36 text. The test now uses the fonts fake, which serves the system emoji fonts. The existing emoji tests don't change.tests/notification_window: a notification whose title and body mix text and emoji, at every text size.tests/timeline_peek: the watchface peek at every text size, with a title and subtitle and with a two-line title.tests/menu_layer_system_cells: rows with only a title, at the basic cell height that Settings and Quiet Time use, at every text size.The images record current behaviour, including two things later PRs address:
The images are drawn from the resource packs refreshed in #2479, so emoji draw in color.
#2467 builds on the timeline peek test, and #2475 on the emoji tests.
Reference image changes
Drawn with
tools/test_image_review.py.Images in
tests/test_imagesat 98ccd8f (before) and 6ab70fa (after). The Test workflow checks that they match what the code draws. Only screens with a change are shown.any, new files
asterix (1/2), new files
asterix (2/2), new files
gabbro (1/2), new files
gabbro (2/2), new files
obelix (1/2), new files
obelix (2/2), new files
10 files
test_emoji_fonts__gothic_36_text.png: newtest_menu_layer_system_cells__single_line_content_sizes~asterix.png: newtest_notification_window__emoji~asterix.png: newtest_timeline_peek__content_sizes~asterix.png: newtest_menu_layer_system_cells__single_line_content_sizes~gabbro.png: newtest_notification_window__emoji~gabbro.png: newtest_timeline_peek__content_sizes~gabbro.png: newtest_menu_layer_system_cells__single_line_content_sizes~obelix.png: newtest_notification_window__emoji~obelix.png: newtest_timeline_peek__content_sizes~obelix.png: newAll 402 host tests pass on obelix, gabbro and asterix, and gitlint passes.
🤖 Generated with Claude Code