Skip to content

tests: add screenshot fixtures for text size changes - #2466

Merged
gmarull merged 4 commits into
coredevices:mainfrom
scottanderson:style-fixtures
Oct 20, 2026
Merged

gmarull merged 4 commits into
coredevices:mainfrom
scottanderson:style-fixtures

Conversation

@scottanderson

@scottanderson scottanderson commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • At Extra Large, notification bodies use 36 point text, which has no emoji font, so the emoji draw smaller than at Large.
  • The peek box keeps the default size's height and icon width at every size, so at Extra Large a title without a subtitle is cut to one line.

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_images at 98ccd8f (before) and 6ab70fa (after). The Test workflow checks that they match what the code draws. Only screens with a change are shown.

Platform Changed New Removed
any 0 1 0
asterix 0 3 0
gabbro 0 3 0
obelix 0 3 0

any, new files

any-1

asterix (1/2), new files

asterix-1

asterix (2/2), new files

asterix-2

gabbro (1/2), new files

gabbro-1

gabbro (2/2), new files

gabbro-2

obelix (1/2), new files

obelix-1

obelix (2/2), new files

obelix-2
10 files
  • test_emoji_fonts__gothic_36_text.png: new
  • test_menu_layer_system_cells__single_line_content_sizes~asterix.png: new
  • test_notification_window__emoji~asterix.png: new
  • test_timeline_peek__content_sizes~asterix.png: new
  • test_menu_layer_system_cells__single_line_content_sizes~gabbro.png: new
  • test_notification_window__emoji~gabbro.png: new
  • test_timeline_peek__content_sizes~gabbro.png: new
  • test_menu_layer_system_cells__single_line_content_sizes~obelix.png: new
  • test_notification_window__emoji~obelix.png: new
  • test_timeline_peek__content_sizes~obelix.png: new

All 402 host tests pass on obelix, gabbro and asterix, and gitlint passes.

🤖 Generated with Claude Code

@gmarull

gmarull commented Oct 19, 2026

Copy link
Copy Markdown
Member

looks outdated? some screenshots must have been taken before e.g. large font shape fixes

scottanderson and others added 4 commits October 20, 2026 13:19
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

Copy link
Copy Markdown
Contributor Author

I've rebased this PR onto #2479 to resolve the outdated imagery.

@gmarull
gmarull merged commit e75cd07 into coredevices:main Oct 20, 2026
34 checks passed
@scottanderson
scottanderson deleted the style-fixtures branch October 20, 2026 19:17
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.

2 participants