Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: add Node.js 22 bots (#30644)

Max Schmittc7e7a7ef56dd
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index 355a3ba154..10806ccf98 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -41,6 +41,9 @@ jobs:
- os: ubuntu-22.04
node-version: 20
browser: chromium
+ - os: ubuntu-22.04
+ node-version: 22
+ browser: chromium
runs-on: ${{ matrix.os }}
permissions:
id-token: write # This is required for OIDC login (azure/login) to succeed
@@ -108,6 +111,14 @@ jobs:
node-version: 20
shardIndex: 2
shardTotal: 2
+ - os: ubuntu-latest
+ node-version: 22
+ shardIndex: 1
+ shardTotal: 2
+ - os: ubuntu-latest
+ node-version: 22
+ shardIndex: 2
+ shardTotal: 2
runs-on: ${{ matrix.os }}
permissions:
id-token: write # This is required for OIDC login (azure/login) to succeed
diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.yml
index 2a5084349f..10209204e9 100644
--- a/.github/workflows/tests_secondary.yml
+++ b/.github/workflows/tests_secondary.yml
@@ -95,6 +95,8 @@ jobs:
node_version: 16
- os: ubuntu-latest
node_version: 20
+ - os: ubuntu-latest
+ node_version: 22
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
diff --git a/tests/library/browsercontext-fetch.spec.ts b/tests/library/browsercontext-fetch.spec.ts
index 223a57b5d0..0efb4bacb6 100644
--- a/tests/library/browsercontext-fetch.spec.ts
+++ b/tests/library/browsercontext-fetch.spec.ts
@@ -829,7 +829,7 @@ it('should not hang on a brotli encoded Range request', async ({ context, server
headers: {
range: 'bytes=0-2',
},
- })).rejects.toThrow(`failed to decompress 'br' encoding: Error: unexpected end of file`);
+ })).rejects.toThrow(/(failed to decompress 'br' encoding: Error: unexpected end of file|Parse Error: Data after \`Connection: close\`)/);
});
it('should dispose', async function({ context, server }) {