Skip to content

Commit 1be8675

Browse files
committed
Continue fixes from rrweb-io#1510
1 parent 8d8e693 commit 1be8675

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/rrweb/test/integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ describe('record integration tests', function (this: ISuite) {
907907
const snapshots = (await page.evaluate(
908908
'window.snapshots',
909909
)) as eventWithTime[];
910-
assertSnapshot(snapshots);
910+
await assertSnapshot(snapshots);
911911
});
912912

913913
it('should record images with blob url', async () => {

packages/rrweb/test/record.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ describe('record', function (this: ISuite) {
534534
styleEl.append(document.createTextNode('span { color: orange; }'));
535535
});
536536
await waitForRAF(ctx.page);
537-
assertSnapshot(ctx.events);
537+
await assertSnapshot(ctx.events);
538538
});
539539

540540
it('captures stylesheets with `blob:` url', async () => {
@@ -962,7 +962,7 @@ describe('record', function (this: ISuite) {
962962
await ctx.page.waitForResponse(corsStylesheetURL); // wait for stylesheet to be loaded
963963
await waitForRAF(ctx.page); // wait for rrweb to emit events
964964

965-
assertSnapshot(ctx.events);
965+
await assertSnapshot(ctx.events);
966966
});
967967

968968
it('captures adopted stylesheets in shadow doms and iframe', async () => {

0 commit comments

Comments
 (0)