Skip to content

Commit

Permalink
chore: use playwright in browser tests (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored Jan 2, 2025
1 parent 11fcd7b commit ca123e6
Show file tree
Hide file tree
Showing 7 changed files with 144 additions and 83 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
- name: Pretest
run: pnpm pretest

- name: Install playwright dependencies
if: matrix.env.name == 'browser'
run: pnpm exec playwright install --with-deps --only-shell chromium

- name: Run Tests - ${{ matrix.env.name }}
run: pnpm test:${{ matrix.env.name }}

Expand Down
2 changes: 1 addition & 1 deletion apps/create-fuels-counter-guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@vitejs/plugin-react": "^4.3.3",
"@eslint/js": "^9.10.0",
"@types/node": "^22.5.5",
"@playwright/test": "^1.47.2",
"@playwright/test": "^1.49.1",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3",
"autoprefixer": "^10.4.20",
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@internal/fuel-core": "workspace:*",
"@internal/tsup": "workspace:*",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@playwright/test": "^1.47.2",
"@playwright/test": "^1.49.1",
"@types/node": "^22.5.5",
"@types/node-fetch": "^2.6.11",
"@types/web": "^0.0.174",
Expand Down Expand Up @@ -124,8 +124,7 @@
"vite-plugin-json5": "^1.1.2",
"vite-plugin-node-polyfills": "^0.22.0",
"vite-plugin-plain-text": "^1.4.2",
"vitest": "~2.0.5",
"webdriverio": "^9.0.9"
"vitest": "~2.0.5"
},
"pnpm": {
"overrides": {
Expand Down
Loading

0 comments on commit ca123e6

Please sign in to comment.