Skip to content

Commit 81003c8

Browse files
committed
fix tests for optionsEvent
1 parent aef3771 commit 81003c8

File tree

2 files changed

+12
-0
lines changed
  • dev-packages/browser-integration-tests/suites/replay

2 files changed

+12
-0
lines changed

dev-packages/browser-integration-tests/suites/replay/canvas/records/test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ sentryTest('can record canvas', async ({ getLocalTestUrl, page, browserName }) =
2424

2525
await page.goto(url);
2626
await reqPromise0;
27+
const content0 = getReplayRecordingContent(await reqPromise0);
28+
expect(content0.optionsEvents).toEqual([
29+
{
30+
tag: 'options',
31+
payload: expect.objectContaining({
32+
shouldRecordCanvas: true,
33+
}),
34+
},
35+
]);
36+
37+
2738
await Promise.all([page.click('#draw'), reqPromise1]);
2839

2940
const { incrementalSnapshots } = getReplayRecordingContent(await reqPromise2);

dev-packages/browser-integration-tests/suites/replay/customEvents/test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ sentryTest(
227227
networkCaptureBodies: true,
228228
networkRequestHasHeaders: true,
229229
networkResponseHasHeaders: true,
230+
shouldRecordCanvas: false,
230231
},
231232
},
232233
]);

0 commit comments

Comments
 (0)