Skip to content

Commit 7f55577

Browse files
authored
test(e2e): update test-e2e script to read playwright version automatically (#4724)
Co-authored-by: Josh Black <[email protected]>
1 parent 55d53f2 commit 7f55577

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/test-e2e

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
set -x
44

5+
PLAYWRIGHT_VERSION=$(npm --json list @playwright/test | jq --raw-output '.dependencies["@playwright/test"].version')
6+
57
docker run --rm \
68
--network host \
79
-v $(pwd):/workspace \
810
-w /workspace \
9-
-it mcr.microsoft.com/playwright:v1.43.0-jammy \
11+
-it "mcr.microsoft.com/playwright:v$PLAYWRIGHT_VERSION-jammy" \
1012
/bin/bash -c "npm install && STORYBOOK_URL=http://host.docker.internal:6006 npx playwright test $@"

0 commit comments

Comments
 (0)