Skip to content

Remove obsolete references to screenshot snapshots#2135

Open
dscho wants to merge 1 commit intogit:gh-pagesfrom
dscho:the-tests-really-dont-use-snapshots-anymore
Open

Remove obsolete references to screenshot snapshots#2135
dscho wants to merge 1 commit intogit:gh-pagesfrom
dscho:the-tests-really-dont-use-snapshots-anymore

Conversation

@dscho
Copy link
Member

@dscho dscho commented Feb 17, 2026

Changes

Context

In e3c066e ("test: verify dark/light mode via normalized relative luminance"), the dark mode test was rewritten to use an average-brightness approach instead of comparing against reference screenshots. Follow-up commit f3d3240 ("test: remove screenshot snapshots for dark/light mode tests") removed the tracked Linux snapshot images, but left behind the .gitignore entries that suppressed the non-Linux (macOS and Windows) snapshots, as well as the README note explaining that the first test run on those platforms would "fail" while generating the baseline screenshots.

Since toHaveScreenshot is no longer used anywhere in the test suite, clean up these leftovers: remove the two .gitignore patterns for *-darwin.png and *-win32.png in the snapshots directory, and remove the now-inaccurate README paragraph about first-run screenshot failures on non-Linux platforms.

In e3c066e ("test: verify dark/light mode via normalized relative
luminance"), the dark mode test was rewritten to use an average-brightness
approach instead of comparing against reference screenshots. Follow-up
commit f3d3240 ("test: remove screenshot snapshots for dark/light mode
tests") removed the tracked Linux snapshot images, but left behind the
`.gitignore` entries that suppressed the non-Linux (macOS and Windows)
snapshots, as well as the README note explaining that the first test run
on those platforms would "fail" while generating the baseline screenshots.

Since `toHaveScreenshot` is no longer used anywhere in the test suite,
clean up these leftovers: remove the two `.gitignore` patterns for
`*-darwin.png` and `*-win32.png` in the snapshots directory, and
remove the now-inaccurate README paragraph about first-run screenshot
failures on non-Linux platforms.

Assisted-by: Claude Opus 4.6
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho self-assigned this Feb 17, 2026
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