Skip to content

Commit

Permalink
chore: ease the stress tests (#14260)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelfeldman authored May 18, 2022
1 parent 6e3b065 commit 50b2d4a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/tests_stress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion tests/stress/contexts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 50b2d4a

Please sign in to comment.