Skip to content

Commit

Permalink
update playwright (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangardner authored Oct 21, 2024
1 parent b21c1e7 commit afbde7f
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 167 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: pnpm install

- name: Install playwright
run: pnpm dlx playwright install --with-deps
run: pnpm dlx playwright@1.48.1 install --with-deps

# While most of the test suite is self-contained, the tests for the demo
# servers require a prod build of @atj/server.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ This project uses [pnpm workspaces](https://pnpm.io/workspaces). To work with th
pnpm install
```

To install the browsers needed for the Storybook testing with `@vitest/browser`, you need to do a one-time install with `pnpm dlx install playwright --with-deps`. To run the complete test suite, with coverage metrics generated:
To install the browsers needed for the Storybook testing with `@vitest/browser`, you need to do a one-time install with `pnpm dlx playwright@1.48.1 install --with-deps`. This command also needs to be run when Playwright is updated because it requires version parity to find the executables across the local dev environment and CI to get all the tests to pass. To run the complete test suite, with coverage metrics generated:

```bash
pnpm test
Expand Down
2 changes: 1 addition & 1 deletion e2e/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# base image with Node.js and playwright preinstalled
FROM mcr.microsoft.com/playwright:v1.47.2-noble as base
FROM mcr.microsoft.com/playwright:v1.48.1-noble as base
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
ENV NODE_ENV=test
Expand Down
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "export E2E_ENDPOINT=http://localhost:4321; pnpm playwright test --ui-port=8080 --ui-host=0.0.0.0"
},
"devDependencies": {
"@playwright/test": "^1.47.2",
"@playwright/test": "1.48.1",
"@storybook/test-runner": "^0.19.1",
"path-to-regexp": "^7.1.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dist/**/*"
],
"devDependencies": {
"@playwright/test": "^1.47.2",
"@playwright/test": "1.48.1",
"@storybook/addon-a11y": "^8.2.8",
"@storybook/addon-coverage": "^1.0.4",
"@storybook/addon-essentials": "^8.2.8",
Expand Down Expand Up @@ -56,7 +56,7 @@
"install": "^0.13.0",
"jsdom": "^24.1.1",
"onchange": "^7.1.0",
"playwright": "^1.47.2",
"playwright": "1.48.1",
"prop-types": "^15.8.1",
"react-dom": "^18.3.1",
"vite": "^5.4.0",
Expand Down
Loading

0 comments on commit afbde7f

Please sign in to comment.