Repository navigation
test(dashboard): Set the 14px root before load in the Linked work side test - #3321
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
15 screenshot changes — 15 changed · 0 added · 0 removed Review screenshots in Frameshift Show 9 more changed screenshots |
…e test #3316 removed the 14px root from this test to stop a flake. A root font change after render animates the sidebar width, and the hover retries scroll the page. Set the root with an adopted style sheet from addInitScript, so it applies before the first render and nothing moves. Co-Authored-By: BYK <[email protected]>
sentry-junior
Bot
force-pushed
the
test/linked-work-side-scroll
branch
from
November 13, 2026 07:38
21bbc6d to
d2b0bbb
Compare
BYK
approved these changes
Nov 13, 2026
23 tasks done
dcramer
added a commit
that referenced
this pull request
Nov 22, 2026
… it (#4026) Browser journeys kept acting on UI that was still animating, transitioning, or scrolling. #3918, #3925, #3928, #3321, #3589, and #3984 each worked around this for one widget. Under `prefers-reduced-motion: reduce`, one base-layer rule now stops every CSS transition, makes animations 0.01ms with one iteration, and turns off smooth scroll. Before, only components that remembered `motion-reduce:` stopped. People who ask for reduced motion get the same result. Transitions are turned off, not shortened. A short `transition-duration` on `*` also applies to the default `transition-property: all`, so every style change becomes a transition, and code that measures right after a change reads the old value. Base UI waits on `getAnimations()`, so it does not need `transitionend`. Animations keep a short duration, so `animationend` still fires. Playwright now emulates reduced motion for every dashboard journey through `contextOptions.reducedMotion`, because Playwright has no top-level `reducedMotion` option. Specs do not override it, and a new ast-grep rule enforces that. Motion is for visual QA. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Ab82f40accd1a21cad6f07a8a55fb8c35 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Ab82f40accd1a21cad6f07a8a55fb8c35) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ab82f40accd1a21cad6f07a8a55fb8c35/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
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.
Problem
#3316 fixed the flaky test
code.spec.ts› "opens Linked work toward the larger free space". It also removed the test's 14px root font size.The flake came from the font change: the test set the 14px root with
addStyleTagafter the page rendered. That change animates the sidebar width, which is in rem, so the trigger moved for about 100ms. The hover then retried with Playwright's forced scroll alignment and scrolled the 600px window. The app does not scroll on hover.Fix
This PR keeps the fix from #3316 and adds the 14px root back. The root is set before the page loads, with an adopted style sheet from
addInitScript, so nothing animates after load. Some browsers default to a root font smaller than 16px. No product code changes.Tests
main, the test passed 20/20 with--repeat-each 20. Before the merge, the same init-script change passed 20/20 with 4 workers and with 1 worker.bottom, gottop).pnpm typecheck,pnpm lintandtest-architecture:checkpass.via @BYK.
--
View Session [Sentry]