Skip to content

Commit

Permalink
test(e2e): update test-e2e script to read playwright version automati…
Browse files Browse the repository at this point in the history
…cally (#4724)

Co-authored-by: Josh Black <joshblack@users.noreply.github.com>
  • Loading branch information
joshblack and joshblack committed Jul 9, 2024
1 parent 55d53f2 commit 7f55577
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script/test-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

set -x

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

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

0 comments on commit 7f55577

Please sign in to comment.