Commit c02774d
authored
🤖 tests: wait for post-highlighting scroll RAF in CodeBlocks story (#1265)
The CodeBlocks story was flaky because after Shiki highlighting
completes, code block heights change which triggers the ResizeObserver
in `useAutoScroll` to schedule a coalesced RAF scroll. Chromatic could
capture the snapshot before this RAF completed.
Add a double-RAF wait after verifying highlighting is done, matching the
pattern used in `useAutoScroll.performAutoScroll()` and the
`expandAllBashTools` helper.
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking:
`high`_1 parent 534ee43 commit c02774d
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
265 | 269 | | |
266 | 270 | | |
267 | 271 | | |
| |||
0 commit comments