Skip to content

test(webui): compare the shell screenshot exactly - #246

Merged
modacker merged 1 commit into
webuifrom
test/webui-shell-rail-exact-screenshot
Oct 23, 2026
Merged

modacker merged 1 commit into
webuifrom
test/webui-shell-rail-exact-screenshot

Conversation

@modacker

Copy link
Copy Markdown
Collaborator

The shell-and-rail screenshot was the only assertion in the package that allowed a difference: maxDiffPixels: 2. The allowance was never measured.

The commit that added it (4d06e81) also changed the home greeting and the stacking order of the session-row actions. Neither renders into this screenshot. The greeting belongs to the home surface, and this case opens a session; the row actions are opacity: 0 until their row is hovered or focused, and the case does neither.

The baseline was regenerated on the runner's own Chromium at 5dd91b3 and has not been rewritten since, and PR #240's Linux browser gate (test:webui-browser => PASS) passed this very baseline with no tolerance at all. Nothing since has touched an element that renders into this screenshot.

Compare the screenshot exactly, the way the other nine baselines are compared.

If the gate turns red, the diff artifact carries the exact pixel count, and the baseline can be regenerated on the runner's own Chromium the way 5dd91b3 and ac81d18 did.

The shell-and-rail screenshot was the only assertion in the package that
allowed a difference: `maxDiffPixels: 2`. The allowance was never measured.

The commit that added it (4d06e81) also changed the home greeting and the
stacking order of the session-row actions. Neither renders into this
screenshot. The greeting belongs to the home surface, and this case opens a
session; the row actions are `opacity: 0` until their row is hovered or
focused, and the case does neither. The baseline was regenerated on the
runner's own Chromium at 5dd91b3 and has not been rewritten since, and
PR #240's Linux browser gate passed this very baseline with no tolerance at
all.

Compare the screenshot exactly, the way the other nine baselines are
compared.
@modacker
modacker force-pushed the test/webui-shell-rail-exact-screenshot branch from da6c032 to bd44182 Compare October 23, 2026 18:32
@modacker
modacker merged commit 9f22ca3 into webui Oct 23, 2026
8 checks passed
@modacker
modacker deleted the test/webui-shell-rail-exact-screenshot branch October 23, 2026 19:04
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