diff --git a/packages/integration-tests/playwright.config.ts b/packages/integration-tests/playwright.config.ts index 7445d985c1ba..3baf3937c1f7 100644 --- a/packages/integration-tests/playwright.config.ts +++ b/packages/integration-tests/playwright.config.ts @@ -4,8 +4,8 @@ const config: PlaywrightTestConfig = { retries: 0, // Run tests inside of a single file in parallel fullyParallel: true, - // Use 5 workers on CI, else use defaults (based on available CPU cores) - // Note that 5 is a random number selected to work well with our CI setup - workers: process.env.CI ? 5 : undefined, + // Use 3 workers on CI, else use defaults (based on available CPU cores) + // Note that 3 is a random number selected to work well with our CI setup + workers: process.env.CI ? 3 : undefined, }; export default config; diff --git a/packages/integration-tests/suites/replay/errors/droppedError/test.ts b/packages/integration-tests/suites/replay/errors/droppedError/test.ts index c509dda8206e..5bcb75bfe619 100644 --- a/packages/integration-tests/suites/replay/errors/droppedError/test.ts +++ b/packages/integration-tests/suites/replay/errors/droppedError/test.ts @@ -24,11 +24,15 @@ sentryTest( sentryTest.skip(); } - let callsToSentry = 0; const reqPromise0 = waitForReplayRequest(page, 0); + const reqPromise1 = waitForReplayRequest(page, 1); + const reqPromise2 = waitForReplayRequest(page, 2); + + let callsToSentry = 0; await page.route('https://dsn.ingest.sentry.io/**/*', route => { callsToSentry++; + return route.fulfill({ status: 200, contentType: 'application/json', @@ -46,10 +50,13 @@ sentryTest( const req0 = await reqPromise0; await page.click('#go-background'); - expect(callsToSentry).toEqual(2); // 2 replay events + await reqPromise1; await page.click('#log'); await page.click('#go-background'); + await reqPromise2; + + // Note: The fact that reqPromise1/reqPromise2 are fulfilled prooves that the recording continues const event0 = getReplayEvent(req0); diff --git a/packages/nextjs/playwright.config.ts b/packages/nextjs/playwright.config.ts index d0cf5c2fa767..d8f73993c815 100644 --- a/packages/nextjs/playwright.config.ts +++ b/packages/nextjs/playwright.config.ts @@ -8,9 +8,9 @@ const config: PlaywrightTestConfig = { }, // Run tests inside of a single file in parallel fullyParallel: true, - // Use 5 workers on CI, else use defaults (based on available CPU cores) - // Note that 5 is a random number selected to work well with our CI setup - workers: process.env.CI ? 5 : undefined, + // Use 3 workers on CI, else use defaults (based on available CPU cores) + // Note that 3 is a random number selected to work well with our CI setup + workers: process.env.CI ? 3 : undefined, webServer: { cwd: path.join(__dirname, 'test', 'integration'), command: 'yarn start', diff --git a/packages/remix/playwright.config.ts b/packages/remix/playwright.config.ts index 88ba7b451389..63de33ff74ed 100644 --- a/packages/remix/playwright.config.ts +++ b/packages/remix/playwright.config.ts @@ -7,9 +7,9 @@ const config: PlaywrightTestConfig = { }, // Run tests inside of a single file in parallel fullyParallel: true, - // Use 5 workers on CI, else use defaults (based on available CPU cores) - // Note that 5 is a random number selected to work well with our CI setup - workers: process.env.CI ? 5 : undefined, + // Use 3 workers on CI, else use defaults (based on available CPU cores) + // Note that 3 is a random number selected to work well with our CI setup + workers: process.env.CI ? 3 : undefined, webServer: { command: '(cd test/integration/ && yarn build && yarn start)', port: 3000,