File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,27 +13,36 @@ tasks:
1313 Pass extra Playwright flags via -- :
1414 task testing:e2e:live -- --headed --grep merge
1515 deps :
16- - " :backend:dev "
16+ - " e2e:live:bootrun "
1717 - " e2e:live:runner"
1818
19+ " e2e:live:bootrun " :
20+ internal : true
21+ ignore_error : true
22+ cmds :
23+ # bash gradlew (the sh wrapper) works on Linux/macOS/Windows-with-Git-Bash,
24+ # and avoids the cmd /c gradlew.bat cwd quirk on Windows where Task's
25+ # mvdan/sh launches cmd.exe in %TEMP%, not the project dir.
26+ - bash gradlew :stirling-pdf:bootRun
27+
1928 " e2e:live:runner " :
2029 internal : true
2130 deps : [":frontend:prepare"]
2231 dir : frontend
2332 cmds :
2433 - |
25- echo "Waiting for backend on :8080 (up to 5min )..."
34+ echo "Waiting for backend on :8080 (up to 10min — first compile can be slow )..."
2635 WAITED=0
27- while [ $WAITED -lt 300 ]; do
36+ while [ $WAITED -lt 600 ]; do
2837 if curl -sf http://localhost:8080/api/v1/info/status 2>/dev/null | grep -q UP; then
2938 echo "Backend ready — starting Playwright"
3039 break
3140 fi
3241 sleep 2
3342 WAITED=$((WAITED + 2))
3443 done
35- if [ $WAITED -ge 300 ]; then
36- echo "Backend did not become ready within 5min — aborting"
44+ if [ $WAITED -ge 600 ]; then
45+ echo "Backend did not become ready within 10min — aborting"
3746 exit 1
3847 fi
3948 - npx playwright test --project=live {{.CLI_ARGS}}
You can’t perform that action at this time.
0 commit comments