From 50b2d4aabecaafab05f55c11b108515b0d907715 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Wed, 18 May 2022 12:01:18 -0700 Subject: [PATCH] chore: ease the stress tests (#14260) --- .github/workflows/tests_stress.yml | 13 ++++++++++++- tests/stress/contexts.spec.ts | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) 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();