chore: ease the stress tests (#14260)

This commit is contained in:
Pavel Feldman 2022-05-18 12:01:18 -07:00 committed by GitHub
parent 6e3b065bbe
commit 50b2d4aabe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View file

@ -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()

View file

@ -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();