Skip to content

Commit

Permalink
Update packages/rrweb-snapshot/test/integration.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Juice10 authored and eoghanmurray committed May 22, 2024
1 parent c9d6a65 commit f8cbf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb-snapshot/test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ iframe.contentDocument.querySelector('center').clientHeight
inlineImages: true,
inlineStylesheet: false
})`);
await setTimeout(20); // need a small wait, as after the crossOrigin="anonymous" change, the snapshot triggers a reload of the image (which mutates the snapshot when loaded)
await waitForRAF(page); // need a small wait, as after the crossOrigin="anonymous" change, the snapshot triggers a reload of the image (which mutates the snapshot when loaded)
const bodyChildren = (await page.evaluate(`
snapshot.childNodes[0].childNodes[1].childNodes.filter((cn) => cn.type === 2);
`)) as any[];
Expand Down

0 comments on commit f8cbf9c

Please sign in to comment.