From 67d589ec64189af05ad8fa6737377c33b86a92cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira=20Mu=C3=B1oz?= Date: Sun, 8 Sep 2024 22:43:49 +0200 Subject: [PATCH] Get the Playwright version from the package.json --- .playwright_docker_version | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 .playwright_docker_version diff --git a/.playwright_docker_version b/.playwright_docker_version deleted file mode 100644 index f279a92..0000000 --- a/.playwright_docker_version +++ /dev/null @@ -1 +0,0 @@ -v1.46.1-jammy \ No newline at end of file diff --git a/package.json b/package.json index b1f8bc8..4ca659b 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "stop:ha": "docker stop $(docker ps -a -q --filter ancestor=homeassistant/home-assistant:${TAG:-$(cat .hass/config/.HA_VERSION)}) || true", "reset:ha": "git add .hass/config/.HA_VERSION && git checkout .hass/config", "demo": "pnpm build && pnpm start:ha", - "start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:$(cat .playwright_docker_version) sh -c \"yarn test:run && exit\"", + "start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:v$npm_package_devDependencies__playwright_test-jammy sh -c \"yarn test:run && exit\"", "coverage:report": "nyc report --reporter=lcov --reporter=text-summary", "preinstall": "npx -y only-allow pnpm", "prepare": "pnpm build",