From 6ec4727c7e26d8a0e8d8a9337f0f9184b278a38f Mon Sep 17 00:00:00 2001 From: Justin Halsall Date: Wed, 12 Jun 2024 15:08:23 +0200 Subject: [PATCH] feat: Update dialog test to include rr_open attribute --- packages/rrweb/test/record/__snapshots__/dialog.test.ts.snap | 3 ++- packages/rrweb/test/record/dialog.test.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/rrweb/test/record/__snapshots__/dialog.test.ts.snap b/packages/rrweb/test/record/__snapshots__/dialog.test.ts.snap index 6e4cdff78a..6d2cdb868b 100644 --- a/packages/rrweb/test/record/__snapshots__/dialog.test.ts.snap +++ b/packages/rrweb/test/record/__snapshots__/dialog.test.ts.snap @@ -97,7 +97,8 @@ exports[`dialog > switch to showModal dialog 1`] = ` { \\"id\\": 8, \\"attributes\\": { - \\"open\\": \\"\\" + \\"open\\": \\"\\", + \\"rr_open\\": \\"non-modal\\" } } ], diff --git a/packages/rrweb/test/record/dialog.test.ts b/packages/rrweb/test/record/dialog.test.ts index 4fabe29594..f16156fc0f 100644 --- a/packages/rrweb/test/record/dialog.test.ts +++ b/packages/rrweb/test/record/dialog.test.ts @@ -181,7 +181,7 @@ describe('dialog', () => { dialog.showModal(); }); - assertSnapshot(events); + await assertSnapshot(events); // const lastEvent = events[events.length - 1];