Repository navigation
Commit f061251
[test][docs-infra] Fix flaky runtime theme bridge test in WebKit
The bridge test waited with `waitFor` for a state update that React
commits in a scheduler task. On CI WebKit, that task can run after the
`waitFor` timeout, so the test failed with the text still "base".
Use `flushMicrotasks()` to commit the update inside `act()`. The update
then does not depend on the scheduler task.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent bf5e8eb commit f061251
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
95 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| |||
0 commit comments