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
fix: unbreak installation tests, include in primary CI runs (#13903)
Ross Wollmanc4af7f2fc856
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.ymlindex 79c936d3fc..667bb908d9 100644--- a/.github/workflows/tests_primary.yml+++ b/.github/workflows/tests_primary.yml@@ -164,3 +164,32 @@ jobs:if: always() && matrix.os != 'ubuntu-latest'- run: xvfb-run npm run test-webif: always() && matrix.os == 'ubuntu-latest'++ test-package-installations:+ name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"+ runs-on: ${{ matrix.os }}+ strategy:+ fail-fast: false+ matrix:+ os:+ - ubuntu-latest+ - macos-latest+ - windows-latest+ node_version:+ - "^18.0.0"+ timeout-minutes: 30+ steps:+ - uses: actions/checkout@v2+ - uses: actions/setup-node@v2+ with:+ node-version: ${{ matrix.node_version }}+ - run: npm i -g npm@8+ - run: npm ci+ env:+ DEBUG: pw:install+ - run: npm run build+ - run: npx playwright install-deps+ - run: npm run itest+ if: matrix.os != 'ubuntu-latest'+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run itest+ if: matrix.os == 'ubuntu-latest'diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.ymlindex ff5ca9c175..cfaa2690fa 100644--- a/.github/workflows/tests_secondary.yml+++ b/.github/workflows/tests_secondary.yml@@ -109,18 +109,12 @@ jobs:name: ${{ matrix.browser }}-win-test-resultspath: test-results- test-package-installations:+ test-package-installations-older-node-versions:name: "Installation Test ${{ matrix.os }} (${{ matrix.node_version }})"runs-on: ${{ matrix.os }}strategy:fail-fast: falsematrix:- os:- - ubuntu-latest- - macos-latest- - windows-latest- node_version:- - "^18.0.0"include:- os: ubuntu-latestnode_version: "^14.1.0" # pre 14.1, zip extraction was broken (https://github.com/microsoft/playwright/issues/1988)diff --git a/tests/installation/fixture-scripts/driver-client.js b/tests/installation/fixture-scripts/driver-client.jsindex dba12d04d8..d5881d736d 100644--- a/tests/installation/fixture-scripts/driver-client.js+++ b/tests/installation/fixture-scripts/driver-client.js@@ -28,7 +28,7 @@ const { start } = require('./node_modules/playwright-core/lib/outofprocess');await browser.close();console.log(`${browserType} SUCCESS`);} catch (e) {- console.error(`Should be able to launch ${browserType} from ${requireName}`);+ console.error(`Should be able to launch ${browserType} from ${process.cwd()}`);console.error(e);process.exit(1);}diff --git a/tests/installation/playwright.config.ts b/tests/installation/playwright.config.tsindex bebc4d162f..bc406adf94 100644--- a/tests/installation/playwright.config.ts+++ b/tests/installation/playwright.config.ts@@ -25,6 +25,7 @@ const config: PlaywrightTestConfig = {plugins: [gitCommitInfo(),],+ globalSetup: path.join(__dirname, 'globalSetup'),testIgnore: '**\/fixture-scripts/**',timeout: 5 * 60 * 1000,retries: 0,