You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e2e/code-scroll.spec.ts › a one-line Markdown code block exposes native and selection horizontal scrolling fails intermittently in CI and on cold local runs:
Error: expect(received).toBeGreaterThan(expected)
Expected: > 10
Received: 0
Call Log:
- Timeout 10000ms exceeded while waiting on the predicate
The drag anchors on a guessed container offset (codeBox.x + 24) and immediately drags out of the viewport. Cold-start font loading reflows the code line after the box was measured, so mousedown can land outside the glyphs: no selection anchor forms, the long drag auto-scrolls (the scroll assertions pass) while the selection stays empty, and the test fails at the end with an opaque zero. Moving the anchor to x + 2 (into the leading whitespace) reproduces the failure 4/5 runs, confirming the anchor-position mechanism.
Reproduction
Fresh npm run build:with-deps in apps/desktop.
npx playwright test --config e2e/playwright.config.ts e2e/code-scroll.spec.ts — first run fails, reruns pass.
Deterministic: change the mousedown x-offset to codeBox.x + 2 and the selection assertions fail almost every run.
Activity
test(desktop): deselect-proof the code-scroll selection drag (apache#…
test(desktop): deselect-proof the code-scroll selection drag (apache#…
Adarsh-Me commentedon Sep 4, 2026
/take