Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: do not use a subshell hack when using XVFB (#6884)
Andrey Lushnikov401dcfdefd10
diff --git a/.github/workflows/tests_fyi.yml b/.github/workflows/tests_fyi.ymlindex 802c7d12c0..9460950d37 100644--- a/.github/workflows/tests_fyi.yml+++ b/.github/workflows/tests_fyi.yml@@ -29,9 +29,7 @@ jobs:DEBUG: pw:install- run: npm run build- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}env:PWTEST_VIDEO: 1- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsondiff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.ymlindex 6b6c1729f6..ae1757ea8c 100644--- a/.github/workflows/tests_primary.yml+++ b/.github/workflows/tests_primary.yml@@ -37,9 +37,7 @@ jobs:DEBUG: pw:install- run: npm run build- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}- run: node tests/config/checkCoverage.js ${{ matrix.browser }}- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonif: always()diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.ymlindex 92b2f6237a..414389e992 100644--- a/.github/workflows/tests_secondary.yml+++ b/.github/workflows/tests_secondary.yml@@ -38,9 +38,7 @@ jobs:DEBUG: pw:install- run: npm run build- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}- run: node tests/config/checkCoverage.js ${{ matrix.browser }}- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonif: always()@@ -144,9 +142,7 @@ jobs:DEBUG: pw:install- run: npm run build- run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test -- --project=${{ matrix.browser }}if: ${{ always() }}env:HEADFUL: 1@@ -175,9 +171,7 @@ jobs:DEBUG: pw:install- run: npm run build- run: node lib/cli/cli install-deps chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ctest"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run ctestenv:PWTEST_MODE: ${{ matrix.mode }}- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json@@ -202,9 +196,7 @@ jobs:- run: npm run build- run: node lib/cli/cli install-deps chromium- run: node lib/cli/cli install chrome- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ctest"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run ctestenv:PWTEST_CHANNEL: chrome- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json@@ -279,9 +271,7 @@ jobs:- run: npm run build- run: node lib/cli/cli install-deps firefox- run: node lib/cli/cli install firefox-stable chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ftest"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run ftestenv:PWTEST_CHANNEL: firefox-stable- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json@@ -380,9 +370,7 @@ jobs:- run: npm run build- run: node lib/cli/cli install-deps chromium- run: node lib/cli/cli install chrome-beta- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run ctest"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run ctestenv:PWTEST_CHANNEL: chrome-beta- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json@@ -454,9 +442,7 @@ jobs:- run: npm ci- run: npm run build- run: node lib/cli/cli install-deps chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run etest"+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run etest- run: node tests/config/checkCoverage.js electron- run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.jsonif: always()