Skip to content

Commit bd99f6f

Browse files
waitForRAF rather than waitForTimeout
Co-authored-by: Justin Halsall <[email protected]>
1 parent 4a46d92 commit bd99f6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/rrweb/test/integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe('record integration tests', function (this: ISuite) {
188188
);
189189
}
190190
});
191-
await page.waitForTimeout(5);
191+
await waitForRAF(page);
192192
await page.evaluate(() => {
193193
let styleEl = document.querySelector('style');
194194
if (styleEl) {
@@ -203,7 +203,7 @@ describe('record integration tests', function (this: ISuite) {
203203
});
204204
}
205205
});
206-
await page.waitForTimeout(5);
206+
await waitForRAF(page);
207207
await page.evaluate(() => {
208208
let styleEl = document.querySelector('style');
209209
if (styleEl) {

0 commit comments

Comments
 (0)