Skip to content

test(dashboard): Scroll back up with the wheel in the section-in-view journey - #4063

Merged
dcramer merged 3 commits into
mainfrom
fix-flaky/settings-section-in-view
Nov 23, 2026
Merged

dcramer merged 3 commits into
mainfrom
fix-flaky/settings-section-in-view

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

Fixes a flaky dashboard e2e journey: "new UI › marks the section in view in the pane on pages of sections" in e2e/inbox/settings.spec.ts.

After a section link is clicked, AnchorHeading holds that heading in view until the reader takes over. Reader input (keydown, pointerdown, touchstart, wheel) releases it at once. A bare scroll event counts as the reader only when the page height has not changed since the heading's last scroll.

The journey scrolled back up with window.scrollTo from page script. Sometimes a late read grew the page in the same frame: the API tokens list on Settings, or the dashboard data on Memories. Then the scroll looked like layout, the heading was scrolled back, and the expected section was never marked. A real reader's wheel or scrollbar click sends input, so the app behaves as intended.

The journey now scrolls up with page.mouse.wheel over the heading in view, as a reader does. The spec's dashboard-spec-page-script baseline drops from 8 to 6.

via @dcramer.

--

View Session [Sentry]

… journey

Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
@vercel

vercel Bot commented Nov 23, 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 23, 2026 12:39am UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 23, 2026
@blacksmith-sh

blacksmith-sh Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
test-architecture/test-architecture View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@dcramer
dcramer merged commit a5540ae into main Nov 23, 2026
54 of 56 checks passed
@dcramer
dcramer deleted the fix-flaky/settings-section-in-view branch November 23, 2026 02:40

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 4e3ed211 Deployed Nov 23, 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