Skip to content

Commit 9214bed

Browse files
committed
wait -> action -> await request
1 parent f17e9ac commit 9214bed

File tree

1 file changed

+5
-2
lines changed
  • packages/integration-tests/suites/replay/captureReplay

1 file changed

+5
-2
lines changed

packages/integration-tests/suites/replay/captureReplay/test.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ sentryTest('captureReplay', async ({ getLocalTestPath, page }) => {
2020
});
2121

2222
const url = await getLocalTestPath({ testDir: __dirname });
23+
24+
const reqPromise = page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
2325
await page.goto(url);
24-
await page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
26+
await reqPromise;
2527

28+
const reqPromise2 = page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
2629
await page.click('button');
27-
await page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
30+
await reqPromise2;
2831

2932
const replayEvent = await getFirstSentryEnvelopeRequest<Event>(page, url);
3033

0 commit comments

Comments
 (0)