chore: ease the stress tests (#14260)
This commit is contained in:
Родитель
6e3b065bbe
Коммит
50b2d4aabe
|
@ -32,4 +32,15 @@ jobs:
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npx playwright install --with-deps
|
- 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()
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
import { contextTest as test, expect } from '../config/browserTest';
|
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 }) => {
|
test('cycle contexts ' + i, async ({ page, server }) => {
|
||||||
await page.goto(server.PREFIX + '/stress/index.html');
|
await page.goto(server.PREFIX + '/stress/index.html');
|
||||||
await expect(page.locator('text=Learn React')).toBeVisible();
|
await expect(page.locator('text=Learn React')).toBeVisible();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче