Skip to content

Commit 9f0fe92

Browse files
committed
improve replay test
1 parent 2b1c84e commit 9f0fe92

File tree

1 file changed

+3
-3
lines changed
  • packages/browser-integration-tests/suites/replay/errors/errorsInSession

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ sentryTest(
4343
const req0 = await reqPromise0;
4444

4545
await page.click('#error');
46-
await page.click('#go-background');
46+
await forceFlushReplay();
4747
const req1 = await reqPromise1;
4848

4949
const event0 = getReplayEvent(req0);
@@ -86,7 +86,7 @@ sentryTest(
8686

8787
sentryTest(
8888
'[session-mode] replay event should not contain an error id of a dropped error while recording',
89-
async ({ getLocalTestPath, page }) => {
89+
async ({ getLocalTestPath, page, forceFlushReplay }) => {
9090
if (shouldSkipReplayTest()) {
9191
sentryTest.skip();
9292
}
@@ -108,7 +108,7 @@ sentryTest(
108108
await reqPromise0;
109109

110110
await page.click('#drop');
111-
await page.click('#go-background');
111+
await forceFlushReplay();
112112
const req1 = await reqPromise1;
113113

114114
const event1 = getReplayEvent(req1);

0 commit comments

Comments
 (0)