Skip to content

Commit 0f4d263

Browse files
committed
fix(ci): Reduce flakiness of Replay integration tests
1 parent 2f9ab36 commit 0f4d263

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ sentryTest('captureReplay', async ({ getLocalTestPath, page }) => {
2323
await page.goto(url);
2424

2525
await page.click('button');
26-
await page.waitForTimeout(300);
26+
await page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
2727

2828
const replayEvent = await getFirstSentryEnvelopeRequest<Event>(page, url);
2929

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sentryTest('captureReplay', async ({ getLocalTestPath, page }) => {
2424
await page.goto(url);
2525

2626
await page.click('button');
27-
await page.waitForTimeout(300);
27+
await page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
2828

2929
const replayEvent = await getFirstSentryEnvelopeRequest<Event>(page, url);
3030

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ sentryTest('errorResponse', async ({ getLocalTestPath, page }) => {
2222
const url = await getLocalTestPath({ testDir: __dirname });
2323
await page.goto(url);
2424

25+
await page.waitForRequest('https://dsn.ingest.sentry.io/**/*');
2526
await page.click('button');
26-
await page.waitForTimeout(300);
2727

2828
expect(called).toBe(1);
2929

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ sentryTest('sampling', async ({ getLocalTestPath, page }) => {
2424
await page.goto(url);
2525

2626
await page.click('button');
27-
await page.waitForTimeout(200);
27+
await page.waitForTimeout(500);
2828

2929
const replay = await getReplaySnapshot(page);
3030

0 commit comments

Comments
 (0)