Skip to content

Commit

Permalink
chore(deps): update @playwright/test to 1.47.2 (#5016)
Browse files Browse the repository at this point in the history
* chore(deps): update @playwright/test to 1.47.2

* test(vrt): update snapshots

* test(vrt): update snapshots

---------

Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
joshblack and joshblack authored Oct 10, 2024
1 parent cb21a38 commit a8cc373
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run VRT
uses: docker://mcr.microsoft.com/playwright:v1.43.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.47.2-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run AAT
uses: docker://mcr.microsoft.com/playwright:v1.43.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.47.2-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
echo "pid=$pid" >> $GITHUB_OUTPUT
sleep 5
- name: Run VRT
uses: docker://mcr.microsoft.com/playwright:v1.43.0-jammy
uses: docker://mcr.microsoft.com/playwright:v1.47.2-jammy
env:
STORYBOOK_URL: 'http://172.17.0.1:6006'
with:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 15 additions & 9 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@github/markdownlint-github": "^0.6.0",
"@github/prettier-config": "0.0.6",
"@mdx-js/react": "1.6.22",
"@playwright/test": "1.43.0",
"@playwright/test": "^1.47.2",
"@prettier/sync": "0.5.1",
"@primer/stylelint-config": "^13.0.1-rc.5358628",
"@size-limit/preset-big-lib": "11.0.2",
Expand Down
16 changes: 15 additions & 1 deletion script/test-e2e
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
#!/bin/bash

set -e
set -x

PLAYWRIGHT_VERSION=$(npm --json list @playwright/test | jq --raw-output '.dependencies["@playwright/test"].version')

if [ -z "$PLAYWRIGHT_VERSION" ]; then
echo "Unable to find Playwright version. Make sure @playwright/test is installed."
exit 1
fi

echo "Using Playwright version $PLAYWRIGHT_VERSION"

if [ -z "$STORYBOOK_URL" ]; then
STORYBOOK_URL="http://host.docker.internal:6006"
fi

echo "Using Storybook at: $STORYBOOK_URL"

docker run --rm \
--network host \
-v $(pwd):/workspace \
-w /workspace \
-it "mcr.microsoft.com/playwright:v$PLAYWRIGHT_VERSION-jammy" \
/bin/bash -c "npm install && STORYBOOK_URL=http://host.docker.internal:6006 npx playwright test $@"
/bin/bash -c "npm install && STORYBOOK_URL=$STORYBOOK_URL npx playwright test $@"

0 comments on commit a8cc373

Please sign in to comment.