Skip to content

Commit

Permalink
flakey test?
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Jun 8, 2023
1 parent b1c3dc8 commit 2635b58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as Sentry from '@sentry/browser';

window.Sentry = Sentry;
window.Replay = new Sentry.Replay({
flushMinDelay: 1000,
flushMaxDelay: 1000,
flushMinDelay: 500,
flushMaxDelay: 500,
});

Sentry.init({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,21 @@ sentryTest(
const url = await getLocalTestPath({ testDir: __dirname });

await page.goto(url);
await forceFlushReplay();
const res0 = await reqPromise0;

const reqPromise1 = waitForReplayRequest(page, 2);
const reqPromise1 = waitForReplayRequest(page);

void page.click('#button-add');
await forceFlushReplay();
const res1 = await reqPromise1;

const reqPromise2 = waitForReplayRequest(page, 3);
const reqPromise2 = waitForReplayRequest(page);

void page.click('#button-modify');
await forceFlushReplay();
const res2 = await reqPromise2;

const reqPromise3 = waitForReplayRequest(page, 4);
const reqPromise3 = waitForReplayRequest(page);

void page.click('#button-remove');
await forceFlushReplay();
Expand Down

0 comments on commit 2635b58

Please sign in to comment.