Commit 52c8214
committed
fix: wait for two animation frames to prevent flaky test
The waitForAnimationFrame helper was only waiting for one animation frame,
but due to the round-trip time of Playwright's page.evaluate, maquette's
scheduled render could fire before our callback was registered.
Waiting for two animation frames ensures maquette's render completes before
the test continues.1 parent fccbc33 commit 52c8214
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
0 commit comments