Skip to content

test(dashboard): Make visual review screenshots stable across runs - #3566

Merged
BYK merged 2 commits into
mainfrom
fix/stable-dashboard-screenshots
Nov 17, 2026
Merged

BYK merged 2 commits into
mainfrom
fix/stable-dashboard-screenshots

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Frameshift reports 21 to 32 changed screenshots on every pull request, also on backend-only ones such as #3557. Frameshift is not broken. The dashboard e2e screenshots are different on each run:

Cause Screenshots Fix
The MCP settings show the dashboard URL, which has the random port of the worker's e2e server settings* The capture shows a fixed origin, then puts back the real text
The native <video> controls show a loading spinner that fades out on its own clock conversation-task-line, -child-agents, -attachment*, -share-details, … Hide the native controls (browser UI) in screenshots, and wait for the first frame
A resize during capture moves the page under the old pointer position, so a tooltip or hover shows memories__mobile, conversation-share-details, conversation-file-draft Move the pointer away before a capture resizes the viewport
The object links hover card closes when the desktop capture resizes the page conversation-object-links* Set the desktop size before the hover, the same as the next test
The image is centered on mobile, then the resize to desktop keeps a different scroll position conversation-attachment* Center the image in each view
The screenshot shows the place where a touch fling stops conversation-long-transcript-touch Remove the screenshot

The next report will show conversation-long-transcript-touch__mobile as removed.

Open: some screenshots still change between runs. The causes are not known:

  • automation-run-details__desktop and automations-runs-filters__desktop have sub-pixel glyph differences in the last message of the run drawer.
  • conversation-attachment-zoom shows the result of a pinch gesture.
  • conversation-event-log__mobile, and sometimes conversation-question*, have a different transcript scroll position after load.

via @BYK.

--

View Session [Sentry]

Every pull request got 21 to 32 Frameshift changes, also when it did not
touch the dashboard. The e2e screenshots were not deterministic:

- The MCP settings show the dashboard URL, which has the random port of
  the worker's e2e server.
- The native video controls show a loading spinner that fades out on
  its own clock, so each run caught it at another angle.
- A resize during capture moved the page under the stale pointer, so a
  chart tooltip or button hover showed for whichever element landed
  there.
- The object links hover card closed when the desktop capture resized
  the page.
- The attachment screenshot centered the image on mobile, then resized
  to desktop and kept another scroll position.
- The touch fling screenshot showed wherever the fling stopped.

Co-Authored-By: BYK <[email protected]>
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 17, 2026 10:58am UTC

Request Review

The capture now parks the pointer before it resizes the viewport. The
held list and the chart and chip tooltips were hovered at the default
size, so the desktop capture let go of them. Set the desktop size before
the hover.
@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 17, 2026 12:09
@sentry-junior
sentry-junior Bot requested a review from BYK November 17, 2026 12:09
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 17, 2026
@BYK
BYK merged commit df69e71 into main Nov 17, 2026
46 checks passed
@BYK
BYK deleted the fix/stable-dashboard-screenshots branch November 17, 2026 12:27

This branch was successfully deployed

1 active deployment
Preview – junior-docs — ef0d0226 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant