Repository navigation
test(dashboard): Scroll back up with the wheel in the section-in-view journey - #4063
Merged
Merged
Conversation
… journey Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Found 1 test failure on Blacksmith runners: Failure
|
dcramer
approved these changes
Nov 23, 2026
dcramer
approved these changes
Nov 23, 2026
22 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
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,
AnchorHeadingholds 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.scrollTofrom 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.wheelover the heading in view, as a reader does. The spec'sdashboard-spec-page-scriptbaseline drops from 8 to 6.via @dcramer.
--
View Session [Sentry]