Skip to content

Commit 013f4b8

Browse files
committed
Continue fixes from rrweb-io#1510
1 parent 32689d5 commit 013f4b8

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
@@ -944,7 +944,7 @@ describe('record integration tests', function (this: ISuite) {
944944
const snapshots = (await page.evaluate(
945945
'window.snapshots',
946946
)) as eventWithTime[];
947-
assertSnapshot(snapshots);
947+
await assertSnapshot(snapshots);
948948
});
949949

950950
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)