From adb00ea7225cf8727cb9e2edc3bff750b8d8619c Mon Sep 17 00:00:00 2001 From: Michael Matloka Date: Wed, 8 Feb 2023 18:54:06 +0100 Subject: [PATCH] chore(vrt): Make visual regression test scripts one-click (#14146) --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 201a29a8190ce..074067d969e9a 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,8 @@ "copy-scripts:recorder": "./bin/copy-scripts-recorder", "test": "pnpm test:unit && pnpm test:visual-regression", "test:unit": "jest --testPathPattern=frontend/", - "test:visual-regression": "playwright test -u && test-storybook -u --no-index-json --url $STORYBOOK_URL", + "test:visual-regression": "docker compose -f docker-compose.playwright.yml run -it --build playwright pnpm playwright test -u && pnpm test-storybook -u --no-index-json --url http://host.docker.internal:6006", + "test:visual-regression:stories": "docker compose -f docker-compose.playwright.yml run -it --build playwright pnpm test-storybook -u --no-index-json --url http://host.docker.internal:6006", "test:visual-regression:ci": "playwright test && test-storybook --ci --no-index-json --maxWorkers=2", "start": "concurrently -n ESBUILD,TYPEGEN -c yellow,green \"pnpm start-http\" \"pnpm run typegen:watch\"", "start-http": "pnpm clean && pnpm copy-scripts && node frontend/build.mjs --dev",