1
0
mirror of synced 2026-01-07 00:01:39 -05:00

Use new headless Chrome for playwright (#54096)

This commit is contained in:
Hector Alfaro
2025-01-24 13:24:48 -05:00
committed by GitHub
parent 53732832d1
commit 492f1eb08c
5 changed files with 20 additions and 14 deletions

View File

@@ -51,6 +51,9 @@ jobs:
- name: Index fixtures into the local Elasticsearch
run: npm run index-test-fixtures
- name: Install headless browser
run: npx playwright install --no-shell
- name: Run Playwright tests
env:
PLAYWRIGHT_WORKERS: ${{ fromJSON('[1, 4]')[github.repository == 'github/docs-internal'] }}

View File

@@ -34,6 +34,9 @@ jobs:
- name: Disable Next.js telemetry
run: npx next telemetry disable
- name: Install headless browser
run: npx playwright install --no-shell
# The Playwright test, with the env vars we set here, takes care of
# starting a server and shutting it down when it's done.
# That's why it's important this step comes before the `npm start &`