Skip to content

Commit a8cc373

Browse files
authored
chore(deps): update @playwright/test to 1.47.2 (#5016)
* chore(deps): update @playwright/test to 1.47.2 * test(vrt): update snapshots * test(vrt): update snapshots --------- Co-authored-by: Josh Black <[email protected]>
1 parent cb21a38 commit a8cc373

File tree

6 files changed

+34
-14
lines changed

6 files changed

+34
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
echo "pid=$pid" >> $GITHUB_OUTPUT
134134
sleep 5
135135
- name: Run VRT
136-
uses: docker://mcr.microsoft.com/playwright:v1.43.0-jammy
136+
uses: docker://mcr.microsoft.com/playwright:v1.47.2-jammy
137137
env:
138138
STORYBOOK_URL: 'http://172.17.0.1:6006'
139139
with:
@@ -285,7 +285,7 @@ jobs:
285285
echo "pid=$pid" >> $GITHUB_OUTPUT
286286
sleep 5
287287
- name: Run AAT
288-
uses: docker://mcr.microsoft.com/playwright:v1.43.0-jammy
288+
uses: docker://mcr.microsoft.com/playwright:v1.47.2-jammy
289289
env:
290290
STORYBOOK_URL: 'http://172.17.0.1:6006'
291291
with:

.github/workflows/vrt.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
echo "pid=$pid" >> $GITHUB_OUTPUT
5454
sleep 5
5555
- name: Run VRT
56-
uses: docker://mcr.microsoft.com/playwright:v1.43.0-jammy
56+
uses: docker://mcr.microsoft.com/playwright:v1.47.2-jammy
5757
env:
5858
STORYBOOK_URL: 'http://172.17.0.1:6006'
5959
with:
Loading

package-lock.json

Lines changed: 15 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"@github/markdownlint-github": "^0.6.0",
4949
"@github/prettier-config": "0.0.6",
5050
"@mdx-js/react": "1.6.22",
51-
"@playwright/test": "1.43.0",
51+
"@playwright/test": "^1.47.2",
5252
"@prettier/sync": "0.5.1",
5353
"@primer/stylelint-config": "^13.0.1-rc.5358628",
5454
"@size-limit/preset-big-lib": "11.0.2",

script/test-e2e

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
#!/bin/bash
22

3+
set -e
34
set -x
45

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

8+
if [ -z "$PLAYWRIGHT_VERSION" ]; then
9+
echo "Unable to find Playwright version. Make sure @playwright/test is installed."
10+
exit 1
11+
fi
12+
13+
echo "Using Playwright version $PLAYWRIGHT_VERSION"
14+
15+
if [ -z "$STORYBOOK_URL" ]; then
16+
STORYBOOK_URL="http://host.docker.internal:6006"
17+
fi
18+
19+
echo "Using Storybook at: $STORYBOOK_URL"
20+
721
docker run --rm \
822
--network host \
923
-v $(pwd):/workspace \
1024
-w /workspace \
1125
-it "mcr.microsoft.com/playwright:v$PLAYWRIGHT_VERSION-jammy" \
12-
/bin/bash -c "npm install && STORYBOOK_URL=http://host.docker.internal:6006 npx playwright test $@"
26+
/bin/bash -c "npm install && STORYBOOK_URL=$STORYBOOK_URL npx playwright test $@"

0 commit comments

Comments
 (0)