Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: ease the stress tests (#14260)

Pavel Feldman50b2d4aabeca
diff --git a/.github/workflows/tests_stress.yml b/.github/workflows/tests_stress.yml
index 90097b5f27..8d1c0b0efa 100644
--- a/.github/workflows/tests_stress.yml
+++ b/.github/workflows/tests_stress.yml
@@ -32,4 +32,15 @@ jobs:
- run: npm ci
- run: npm run build
- run: npx playwright install --with-deps
- - run: npm run stest
+ - run: npm run stest contexts -- --project=chromium
+ if: always()
+ - run: npm run stest browsers -- --project=chromium
+ if: always()
+ - run: npm run stest contexts -- --project=webkit
+ if: always()
+ - run: npm run stest browsers -- --project=webkit
+ if: always()
+ - run: npm run stest contexts -- --project=firefox
+ if: always()
+ - run: npm run stest browsers -- --project=firefox
+ if: always()
diff --git a/tests/stress/contexts.spec.ts b/tests/stress/contexts.spec.ts
index 4780d7a284..2cdba4383b 100644
--- a/tests/stress/contexts.spec.ts
+++ b/tests/stress/contexts.spec.ts
@@ -16,7 +16,7 @@
import { contextTest as test, expect } from '../config/browserTest';
-for (let i = 0; i < 5000; ++i) {
+for (let i = 0; i < 1000; ++i) {
test('cycle contexts ' + i, async ({ page, server }) => {
await page.goto(server.PREFIX + '/stress/index.html');
await expect(page.locator('text=Learn React')).toBeVisible();