Skip to content

Commit

Permalink
chore: update playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
vsgoulart committed Apr 9, 2024
1 parent 0122c1e commit fbe2ac4
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/TASKLIST_CARBONISATION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Run visual regression
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.40.1
image: mcr.microsoft.com/playwright:v1.43.0
options: --user 1001:1000
steps:
- name: Checkout form-js
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/UPDATE_VISUAL_SNAPSHOTS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ jobs:
if: github.event.pull_request.state != 'closed' && (github.event.label.name == 'update-snapshots' || contains( github.event.pull_request.labels.*.name, 'update-snapshots'))
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.40.1
image: mcr.microsoft.com/playwright:v1.43.0
options: --user 1001:1000

steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup NPM cache
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install node dependencies
run: npm ci
- name: Build frontend
run: npm run build
- name: Build mock website
run: npm run build:e2e
- name: Start server
run: npm run start:visual-preview
- name: Run Playwright tests
run: npm run test:visual -- --update-snapshots
- name: Commit screenshots
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: updated snapshots"
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup NPM cache
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install node dependencies
run: npm ci
- name: Build frontend
run: npm run build
- name: Build mock website
run: npm run build:e2e
- name: Start server
run: npm run start:visual-preview
- name: Run Playwright tests
run: npm run test:visual -- --update-snapshots
- name: Commit screenshots
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: updated snapshots"
2 changes: 1 addition & 1 deletion .github/workflows/VISUAL_REGRESSION.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: mcr.microsoft.com/playwright:v1.40.1
image: mcr.microsoft.com/playwright:v1.43.0
options: --user 1001:1000
steps:
- name: Check out repository code
Expand Down
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"test:visual": "playwright test visual",
"build:e2e": "vite build",
"start:visual-preview": "vite preview --port 8080 --logLevel silent &",
"start:container": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.40.1 /bin/bash"
"start:container": "docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.43.0 /bin/bash"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@bpmn-io/properties-panel": "^3.18.1",
"@carbon/react": "^1.42.1",
"@carbon/styles": "^1.42.1",
"@playwright/test": "^1.40.1",
"@playwright/test": "^1.43.0",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^25.0.0",
Expand Down

0 comments on commit fbe2ac4

Please sign in to comment.