Freeze icon transitions in the theme motion test #5
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/theme-icon-motion-flake"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
English
Problem
The
web-e2ejob failed on run 31 ine2e/task-5.1.spec.ts:287("theme and copy icons cross-fade through opacity, scale and blur") although the icons do cross-fade. The test sampled rAF frames for 550 ms starting before the interaction: on a loaded runner the theme change lands after that window, and a palette repaint can swallow the whole 300 ms transition, so the sampler only ever observed the start and end values.Change
MutationObserveron the icons'data-statepauses every running CSS transition at half its duration and reads the interpolatedopacity,transformandfilter.transitionrunassertions for all three properties: a transition that never starts still fails.web/e2e/task-5.1.spec.tschanges; no product code.Verification
Emulation.setCPUThrottlingRate): the state change landed after the sampler window.cd web && bun run lint && bun run typecheck && bun run test && bun run build: passed (136 unit tests).