Skip to content

test(dashboard): Set the 14px root before load in the Linked work side test - #3321

Merged
BYK merged 1 commit into
mainfrom
test/linked-work-side-scroll
Nov 13, 2026
Merged

BYK merged 1 commit into
mainfrom
test/linked-work-side-scroll

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

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 addStyleTag after 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

  • Repeat runs: after the merge of 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.
  • Root size: a probe confirmed that the computed root is 14px and that no transition runs at the 600px window.
  • "Opens down" case: it still fails without the side logic from fix(dashboard): Open Linked work toward free space, fit chip icons at small font sizes #3305 (expected bottom, got top).
  • Checks: pnpm typecheck, pnpm lint and test-architecture:check pass.

via @BYK.

--

View Session [Sentry]

@vercel

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

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 13, 2026
@sentry-junior sentry-junior Bot changed the title test(dashboard): Make the Linked work side test independent of hover scroll test(dashboard): Set the 14px root before load in the Linked work side test Nov 13, 2026
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

15 screenshot changes — 15 changed · 0 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attachment · Desktop
Conversation Attachment · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Show 9 more changed screenshots
Conversation Event Log Virtual · Desktop
Conversation Event Log Virtual · Desktop
Changed
Conversation Event Log Virtual · Mobile
Conversation Event Log Virtual · Mobile
Changed
Conversation Long Transcript Touch · Mobile
Conversation Long Transcript Touch · Mobile
Changed
Conversation Question Picks And Text · Desktop
Conversation Question Picks And Text · Desktop
Changed
Conversation Stop Active · Mobile
Conversation Stop Active · Mobile
Changed
Conversation Task Line · Desktop
Conversation Task Line · Desktop
Changed
Conversation Text Attachment · Desktop
Conversation Text Attachment · Desktop
Changed
Push Notifications Tip · Desktop
Push Notifications Tip · Desktop
Changed
Settings Mcp · Desktop
Settings Mcp · Desktop
Changed

…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]>
@BYK
BYK merged commit 8cf3338 into main Nov 13, 2026
43 checks passed
@BYK
BYK deleted the test/linked-work-side-scroll branch November 13, 2026 09:25
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

1 active deployment
Preview – junior-docs — d2b0bbba Deployed Nov 13, 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