Skip to content

Commit 1842167

Browse files
authored
Merge pull request #100 from cloudflare/merge-1.57.0
Merge upstream playwright 1.57.0
2 parents 48bb086 + 8b59bc3 commit 1842167

File tree

565 files changed

+12712
-29335
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

565 files changed

+12712
-29335
lines changed

.github/workflows/cf_prerelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ jobs:
1919
- name: Generate Pre-Release
2020
run: |
2121
npm ci
22+
git submodule update --init
2223
cd packages/playwright-cloudflare
2324
npm run build
2425
npx pkg-pr-new publish

.github/workflows/cf_publish_release_npm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
# Set the output for later steps
2929
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
3030
31-
- name: Run npm ci
32-
run: npm ci
31+
- name: Run npm ci and submodule update
32+
run: |
33+
npm ci
34+
git submodule update --init
3335
3436
- name: Run playwright-cloudflare build
3537
run: |

.github/workflows/cf_test_full.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@ name: "Playwright for Cloudflare - Full Test Suite"
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
project:
7-
description: 'Project to test'
8-
required: true
9-
default: 'BISO'
10-
type: choice
11-
options:
12-
- BISO
13-
- BRAPI Staging
14-
- BRAPI Production
155
grep:
166
description: 'Test filter grep'
177
required: false
@@ -23,7 +13,6 @@ jobs:
2313
env:
2414
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
2515
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
26-
BROWSER_BINDINGS: ${{ secrets.BROWSER_BINDINGS }}
2716
TESTS_SERVER_URL: https://playwright-test-workers.rendering.cfdata.org
2817
CF_ACCESS_CLIENT_SECRET: ${{ secrets.CF_ACCESS_CLIENT_SECRET }}
2918
CF_ACCESS_CLIENT_ID: ${{ secrets.CF_ACCESS_CLIENT_ID }}
@@ -35,14 +24,15 @@ jobs:
3524
registry-url: 'https://registry.npmjs.org'
3625
- run: |
3726
npm ci
27+
git submodule update --init
3828
cd packages/playwright-cloudflare
3929
npm run build
4030
npm run test:deploy
4131
4232
- name: Run tests
4333
run: |
4434
cd packages/playwright-cloudflare
45-
npm run test:full -- --reporter=html --project="${{ github.event.inputs.project || 'BISO' }}" ${{ github.event.inputs.grep && format('--grep="{0}"', github.event.inputs.grep) }}
35+
npm run test:full -- --reporter=html ${{ github.event.inputs.grep && format('--grep="{0}"', github.event.inputs.grep) }}
4636
4737
- name: Upload HTML report
4838
uses: actions/upload-artifact@v4

.github/workflows/cf_test_smoke.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
env:
1010
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
1111
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
12-
BROWSER_BINDINGS: ${{ secrets.BROWSER_BINDINGS }}
1312
TESTS_SERVER_URL: https://playwright-test-workers.rendering.cfdata.org
1413
CF_ACCESS_CLIENT_SECRET: ${{ secrets.CF_ACCESS_CLIENT_SECRET }}
1514
CF_ACCESS_CLIENT_ID: ${{ secrets.CF_ACCESS_CLIENT_ID }}
@@ -22,6 +21,7 @@ jobs:
2221

2322
- run: |
2423
npm ci
24+
git submodule update --init
2525
cd packages/playwright-cloudflare
2626
npm run build
2727
npm run test:deploy

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
steps:
1111
- uses: actions/checkout@v5
12-
- uses: actions/setup-node@v5
12+
- uses: actions/setup-node@v6
1313
with:
1414
node-version: "22"
1515
- run: npm ci

.github/workflows/create_test_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Publish Test Results
22
on:
33
workflow_run:
4-
workflows: ["tests 1", "tests 2", "tests others"]
4+
workflows: ["tests 1", "tests 2", "tests others", "MCP"]
55
types:
66
- completed
77
jobs:
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v5
18-
- uses: actions/setup-node@v5
18+
- uses: actions/setup-node@v6
1919
with:
2020
node-version: 20
2121
- run: npm ci

.github/workflows/infra.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-24.04
2020
steps:
2121
- uses: actions/checkout@v5
22-
- uses: actions/setup-node@v5
22+
- uses: actions/setup-node@v6
2323
with:
2424
node-version: 20
2525
- run: npm ci
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242
steps:
4343
- uses: actions/checkout@v5
44-
- uses: actions/setup-node@v5
44+
- uses: actions/setup-node@v6
4545
with:
4646
node-version: 20
4747
- uses: actions/setup-python@v6

.github/workflows/publish_release.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
environment: allow-publish-driver-to-cdn # This is required for OIDC login (azure/login)
2525
steps:
2626
- uses: actions/checkout@v5
27-
- uses: actions/setup-node@v5
27+
- uses: actions/setup-node@v6
2828
with:
2929
node-version: 20
3030
registry-url: 'https://registry.npmjs.org'
@@ -72,7 +72,7 @@ jobs:
7272
if: github.repository == 'microsoft/playwright'
7373
steps:
7474
- uses: actions/checkout@v5
75-
- uses: actions/setup-node@v5
75+
- uses: actions/setup-node@v6
7676
with:
7777
node-version: 20
7878
- uses: actions/create-github-app-token@v2
@@ -82,17 +82,22 @@ jobs:
8282
private-key: ${{ secrets.PLAYWRIGHT_PRIVATE_KEY }}
8383
repositories: trace.playwright.dev
8484
- name: Deploy Canary
85+
if: contains(github.ref, 'main') && github.event.schedule
8586
run: bash utils/build/deploy-trace-viewer.sh --canary
86-
if: contains(github.ref, 'main')
8787
env:
8888
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}
8989
- name: Deploy Beta
90-
run: bash utils/build/deploy-trace-viewer.sh --beta
9190
if: contains(github.ref, 'release') && github.event_name == 'push'
91+
run: bash utils/build/deploy-trace-viewer.sh --beta
9292
env:
9393
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}
9494
- name: Deploy Stable
95+
if: github.event_name == 'release' && github.event.action == 'published'
96+
run: bash utils/build/deploy-trace-viewer.sh --stable
97+
env:
98+
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}
99+
- name: Deploy Stable (manually)
100+
if: contains(github.ref, 'release') && github.event_name == 'workflow_dispatch'
95101
run: bash utils/build/deploy-trace-viewer.sh --stable
96-
if: contains(github.ref, 'release') && github.event_name == 'release'
97102
env:
98103
GH_SERVICE_ACCOUNT_TOKEN: ${{ steps.app-token.outputs.token }}

.github/workflows/publish_release_docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
environment: allow-publishing-docker-to-acr
2020
steps:
2121
- uses: actions/checkout@v5
22-
- uses: actions/setup-node@v5
22+
- uses: actions/setup-node@v6
2323
with:
2424
node-version: 20
2525
registry-url: 'https://registry.npmjs.org'

.github/workflows/roll_browser_into_playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-24.04
2121
steps:
2222
- uses: actions/checkout@v5
23-
- uses: actions/setup-node@v5
23+
- uses: actions/setup-node@v6
2424
with:
2525
node-version: 20
2626
- run: npm ci

0 commit comments

Comments
 (0)