diff --git a/.changeset/tidy-hairs-hope.md b/.changeset/tidy-hairs-hope.md new file mode 100644 index 000000000..4d382f5b2 --- /dev/null +++ b/.changeset/tidy-hairs-hope.md @@ -0,0 +1,5 @@ +--- +'@web/test-runner-playwright': patch +--- + +bump playwright diff --git a/.github/workflows/canary.yml b/.github/workflows/canary.yml index a91cf1ff6..5df107dd5 100644 --- a/.github/workflows/canary.yml +++ b/.github/workflows/canary.yml @@ -12,7 +12,7 @@ jobs: # Prevents changesets action from creating a PR on forks if: github.repository == 'modernweb-dev/web' name: Pre-release - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2a803576d..03ec43ac5 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -9,7 +9,7 @@ jobs: linux: timeout-minutes: 30 name: Linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e855a188..75c4f52d3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: # Prevents changesets action from creating a PR on forks if: github.repository == 'modernweb-dev/web' name: Release - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - name: Checkout Repo uses: actions/checkout@v4 diff --git a/.github/workflows/verify-browser.yml b/.github/workflows/verify-browser.yml index 5df8ff0bb..73cf0e35a 100644 --- a/.github/workflows/verify-browser.yml +++ b/.github/workflows/verify-browser.yml @@ -9,11 +9,16 @@ jobs: verify-linux: timeout-minutes: 30 name: Linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 + # TODO: remove when GitHub fixes this https://github.com/actions/runner-images/issues/10015 + # (this workaround is practically the same what Playwright did in https://github.com/microsoft/playwright/pull/34238/files) + - name: Workaround for Chrome sandbox issue in Ubuntu 24.04 + run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + - name: Setup Node 20 uses: actions/setup-node@v4 env: diff --git a/.github/workflows/verify-node.yml b/.github/workflows/verify-node.yml index 720af7b82..be84efabd 100644 --- a/.github/workflows/verify-node.yml +++ b/.github/workflows/verify-node.yml @@ -9,7 +9,7 @@ jobs: verify-linux: timeout-minutes: 30 name: Linux - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 strategy: fail-fast: false matrix: @@ -22,6 +22,11 @@ jobs: steps: - uses: actions/checkout@v4 + # TODO: remove when GitHub fixes this https://github.com/actions/runner-images/issues/10015 + # (this workaround is practically the same what Playwright did in https://github.com/microsoft/playwright/pull/34238/files) + - name: Workaround for Chrome sandbox issue in Ubuntu 24.04 + run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 + - name: Setup Node ${{ matrix.node-version }} uses: actions/setup-node@v4 env: diff --git a/.github/workflows/verify-storybook-builder.yml b/.github/workflows/verify-storybook-builder.yml index 23884b46a..fef72d71e 100644 --- a/.github/workflows/verify-storybook-builder.yml +++ b/.github/workflows/verify-storybook-builder.yml @@ -7,7 +7,7 @@ jobs: strategy: fail-fast: false matrix: - runs-on: [ubuntu-22.04, windows-2022] + runs-on: [ubuntu-24.04, windows-2022] runs-on: ${{ matrix.runs-on }} name: ${{ matrix.runs-on }} timeout-minutes: 60 diff --git a/package-lock.json b/package-lock.json index 945c433f5..6b35ad3ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4049,22 +4049,19 @@ } }, "node_modules/@playwright/test": { - "version": "1.36.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.36.1.tgz", - "integrity": "sha512-YK7yGWK0N3C2QInPU6iaf/L3N95dlGdbsezLya4n0ZCh3IL7VgPGxC6Gnznh9ApWdOmkJeleT2kMTcWPRZvzqg==", + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.53.0.tgz", + "integrity": "sha512-15hjKreZDcp7t6TL/7jkAo6Df5STZN09jGiv5dbP9A6vMVncXRqE7/B2SncsyOwrkZRBH2i6/TPOL8BVmm3c7w==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "@types/node": "*", - "playwright-core": "1.36.1" + "playwright": "1.53.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" - }, - "optionalDependencies": { - "fsevents": "2.3.2" + "node": ">=18" } }, "node_modules/@pnpm/config.env-replace": { @@ -24868,31 +24865,33 @@ } }, "node_modules/playwright": { - "version": "1.36.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.36.1.tgz", - "integrity": "sha512-2ZqHpD0U0COKR8bqR3W5IkyIAAM0mT9FgGJB9xWCI1qAUkqLxJskA1ueeQOTH2Qfz3+oxdwwf2EzdOX+RkZmmQ==", - "hasInstallScript": true, + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.53.0.tgz", + "integrity": "sha512-ghGNnIEYZC4E+YtclRn4/p6oYbdPiASELBIYkBXfaTVKreQUYbMUYQDwS12a8F0/HtIjr/CkGjtwABeFPGcS4Q==", "license": "Apache-2.0", "dependencies": { - "playwright-core": "1.36.1" + "playwright-core": "1.53.0" }, "bin": { "playwright": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" + }, + "optionalDependencies": { + "fsevents": "2.3.2" } }, "node_modules/playwright-core": { - "version": "1.36.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.36.1.tgz", - "integrity": "sha512-7+tmPuMcEW4xeCL9cp9KxmYpQYHKkyjwoXRnoeTowaeNat8PoBMk/HwCYhqkH2fRkshfKEOiVus/IhID2Pg8kg==", + "version": "1.53.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.53.0.tgz", + "integrity": "sha512-mGLg8m0pm4+mmtB7M89Xw/GSqoNC+twivl8ITteqvAndachozYe2ZA7srU6uleV1vEdAHYqjq+SV8SNxRRFYBw==", "license": "Apache-2.0", "bin": { "playwright-core": "cli.js" }, "engines": { - "node": ">=16" + "node": ">=18" } }, "node_modules/please-upgrade-node": { @@ -38070,7 +38069,7 @@ "@web/storybook-builder": "^0.2.2" }, "devDependencies": { - "@playwright/test": "^1.22.2", + "@playwright/test": "^1.53.0", "@storybook/addon-a11y": "^8.6.12", "@storybook/addon-essentials": "^8.6.12", "@storybook/addon-interactions": "^8.6.12", @@ -38540,7 +38539,7 @@ "dependencies": { "@web/test-runner-core": "^0.13.0", "@web/test-runner-coverage-v8": "^0.8.0", - "playwright": "^1.22.2" + "playwright": "^1.53.0" }, "devDependencies": { "@web/test-runner-mocha": "^0.9.0", diff --git a/packages/storybook-framework-web-components/package.json b/packages/storybook-framework-web-components/package.json index 2a9e7bf43..c39649f19 100644 --- a/packages/storybook-framework-web-components/package.json +++ b/packages/storybook-framework-web-components/package.json @@ -60,7 +60,7 @@ "@web/storybook-builder": "^0.2.2" }, "devDependencies": { - "@playwright/test": "^1.22.2", + "@playwright/test": "^1.53.0", "@storybook/addon-a11y": "^8.6.12", "@storybook/addon-essentials": "^8.6.12", "@storybook/addon-interactions": "^8.6.12", diff --git a/packages/test-runner-playwright/package.json b/packages/test-runner-playwright/package.json index 6521d591d..0ba889726 100644 --- a/packages/test-runner-playwright/package.json +++ b/packages/test-runner-playwright/package.json @@ -48,7 +48,7 @@ "dependencies": { "@web/test-runner-core": "^0.13.0", "@web/test-runner-coverage-v8": "^0.8.0", - "playwright": "^1.22.2" + "playwright": "^1.53.0" }, "devDependencies": { "@web/test-runner-mocha": "^0.9.0",