Skip to content

Commit b397486

Browse files
committed
Fix: CI Issue 7
1 parent c4b3644 commit b397486

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ jobs:
9292
# Start Frontend (Forcing port 3431)
9393
cd emr-client && npm start -- -p 3431 &
9494
95-
# Wait for ports to be open (10-min timeout for slow cloud seeding)
96-
# We wait for the TCP ports instead of the /health endpoint to avoid hangs during DB seeding
97-
npx wait-on -t 600000 tcp:127.0.0.1:34732 tcp:127.0.0.1:3431
98-
echo "Services are online. Starting Playwright suite."
95+
# Wait for services to be 100% Healthy (10-min timeout for slow cloud seeding)
96+
# The /health endpoint only returns 200 OK after the database seeding is FINISHED.
97+
npx wait-on -t 600000 http://127.0.0.1:34732/health http://127.0.0.1:3431
98+
echo "Services are 100% Healthy. Starting Playwright suite."
9999
100100
# Run Playwright
101101
cd emr-client && npx playwright test tests/clinical-workflow.spec.ts --project=chromium --workers=1

0 commit comments

Comments
 (0)