diff --git a/.github/workflows/pr_ci_playwright_e2e.yaml b/.github/workflows/pr_ci_playwright_e2e.yaml index 1637316e4..8bb8c6e8a 100644 --- a/.github/workflows/pr_ci_playwright_e2e.yaml +++ b/.github/workflows/pr_ci_playwright_e2e.yaml @@ -58,10 +58,11 @@ jobs: MAX_ATTEMPTS=3 WAIT_TIME=30 ATTEMPT=1 - while [[ $ATTEMPT -le $MAX_ATTEMPTS ]] - do + + while [[ $ATTEMPT -le $MAX_ATTEMPTS ]]; do echo "Attempt $ATTEMPT of $MAX_ATTEMPTS" yarn wait-on http://localhost:3000 --timeout ${WAIT_TIME}000 + if [[ $? -eq 0 ]]; then echo "Server is ready!" break