Skip to content

Commit 21e6d5d

Browse files
committed
more robust?
1 parent 9694e23 commit 21e6d5d

File tree

1 file changed

+4
-1
lines changed
  • packages/integration-tests/suites/replay/errors/errorsInSession

1 file changed

+4
-1
lines changed

packages/integration-tests/suites/replay/errors/errorsInSession/test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ sentryTest(
7575
sentryTest.skip();
7676
}
7777

78+
const reqPromise0 = waitForReplayRequest(page, 0);
7879
const reqPromise1 = waitForReplayRequest(page, 1);
7980

8081
await page.route('https://dsn.ingest.sentry.io/**/*', route => {
@@ -90,8 +91,10 @@ sentryTest(
9091
await page.goto(url);
9192
await page.click('#go-background');
9293

94+
await reqPromise0;
95+
9396
void page.click('#drop');
94-
await page.click('#go-background');
97+
void page.click('#go-background');
9598
const req1 = await reqPromise1;
9699

97100
const event1 = getReplayEvent(req1);

0 commit comments

Comments
 (0)