Skip to content

Commit 061ead9

Browse files
committed
need to await stop
1 parent d04a90d commit 061ead9

File tree

1 file changed

+10
-2
lines changed
  • packages/browser-integration-tests/suites/replay/dsc

1 file changed

+10
-2
lines changed

packages/browser-integration-tests/suites/replay/dsc/test.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,19 @@ sentryTest(
5454
sentryTest.skip();
5555
}
5656

57+
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
58+
return route.fulfill({
59+
status: 200,
60+
contentType: 'application/json',
61+
body: JSON.stringify({ id: 'test-id' }),
62+
});
63+
});
64+
5765
const url = await getLocalTestPath({ testDir: __dirname });
5866
await page.goto(url);
5967

60-
await page.evaluate(() => {
61-
void (window as unknown as TestWindow).Replay.stop();
68+
await page.evaluate(async () => {
69+
await (window as unknown as TestWindow).Replay.stop();
6270

6371
(window as unknown as TestWindow).Sentry.configureScope(scope => {
6472
scope.setUser({ id: 'user123', segment: 'segmentB' });

0 commit comments

Comments
 (0)