dx: npm run test-ui

Massimo Melina committed Aug 8, 2025 at 11:30 UTC ec02edcf04d65f8cc17d53c3a14b6a2d79b9d7af
1 file changed +3 -2
package.json
+3 -2
@@ -20,10 +20,11 @@
20 "server-for-test-dev": "cross-env DEV=1 FRONTEND_PROXY=3005 ADMIN_PROXY=3006 nodemon --ignore tests/ --watch src -e ts,tsx --exec tsx src -- --cwd tests/work --config tests",
21 "test": "node --import tsx --test tests/test.ts",
22 "test-with-server": "rm -rf tests/work && (node dist/src --cwd tests/work --config tests & echo $! > .server_pid) && sleep 2 && node --import tsx --test tests/test.ts; _exit=$?; SERVER_PID=$(cat ./.server_pid); kill \"$SERVER_PID\" 2>/dev/null || true; rm -f ./.server_pid; exit $_exit",
23 - "test-ui": "npx playwright test --ui",
23 + "test-ui": "npx playwright test frontend && npx playwright test serial",
24 + "test-with-ui": "npx playwright test --ui",
25 "pub": "cd dist && npm publish",
26 "dist": "(git diff-index --quiet HEAD -- || git stash push -m 'dist') && (CI=1 npm run dist-uncommitted || (EXIT_CODE=$? && git stash pop || true && exit $EXIT_CODE)); git stash pop || true",
26 - "dist-uncommitted": "npm run build-all && npx playwright test frontend && npx playwright test serial && npm run dist-bin",
27 + "dist-uncommitted": "npm run build-all && npm run test-ui && npm run dist-bin",
28 "dist-bin": "npm run dist-modules && npm run dist-bin-win && npm run dist-bin-linux && npm run dist-bin-mac && npm run dist-bin-mac-arm",
29 "dist-modules": "cp package*.json central.json dist && cd dist && npm ci --omit=dev && cd .. && node prune_modules",
30 "dist-pre": "cd dist && rm -rf node_modules/@node-rs/crc32-*",