diff --git a/scripts/test-e2e b/scripts/test-e2e index 9dc3c0e7f..8ffffd422 100755 --- a/scripts/test-e2e +++ b/scripts/test-e2e @@ -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.42.1-focal \ + -it "mcr.microsoft.com/playwright:v$PLAYWRIGHT_VERSION-jammy" \ /bin/bash -c "npm install && STORYBOOK_URL=http://host.docker.internal:6006 npx playwright test $@"