Skip to content

Commit 202d119

Browse files
authored
chore: convert puppeteer tests to playwright (#8577)
1 parent b6a400a commit 202d119

File tree

59 files changed

+106
-607
lines changed

Some content is hidden

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

59 files changed

+106
-607
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
pull_request:
66
permissions:
77
contents: read # to fetch code (actions/checkout)
8+
9+
env:
10+
# We only install Chromium manually
11+
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1'
12+
813
jobs:
914
Tests:
1015
runs-on: ${{ matrix.os }}
@@ -30,7 +35,7 @@ jobs:
3035
node-version: ${{ matrix.node-version }}
3136
cache: pnpm
3237
- run: pnpm install --frozen-lockfile
33-
- run: node node_modules/puppeteer/install.js
38+
- run: pnpm playwright install chromium
3439
- run: pnpm test:integration
3540
env:
3641
CI: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114
"devDependencies": {
115115
"@ampproject/remapping": "^2.2.1",
116116
"@jridgewell/sourcemap-codec": "^1.4.15",
117+
"@playwright/test": "^1.33.0",
117118
"@rollup/plugin-commonjs": "^24.1.0",
118119
"@rollup/plugin-json": "^6.0.0",
119120
"@rollup/plugin-node-resolve": "^15.0.2",
@@ -148,7 +149,6 @@
148149
"periscopic": "^3.1.0",
149150
"prettier": "^2.8.8",
150151
"prettier-plugin-svelte": "^2.10.0",
151-
"puppeteer": "^19.8.5",
152152
"rollup": "^3.20.2",
153153
"source-map": "^0.7.4",
154154
"source-map-support": "^0.5.21",

0 commit comments

Comments
 (0)