Skip to content
Prev Previous commit
Next Next commit
Wait till iframe was loaded (now 100ms)
  • Loading branch information
Juice10 committed Jan 9, 2023
commit 18fec80254c2b5aa6be388188c7bac8e184e7a19
2 changes: 1 addition & 1 deletion packages/rrweb/test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ describe('record integration tests', function (this: ISuite) {
await page.goto('about:blank');
await page.setContent(getHtml.call(this, 'frame2.html'));

await page.waitForTimeout(10); // wait till frame was added to dom
await page.waitForSelector('iframe'); // wait for iframe to get added
await waitForRAF(page); // wait till browser loaded contents of frame

await page.evaluate(() => {
Expand Down