From f88fa7bcb1782cc45e3261bc3912e565e4e4371a Mon Sep 17 00:00:00 2001 From: Glenn Gillen Date: Fri, 7 Jun 2024 09:51:16 +1000 Subject: [PATCH] feat: wait for test server to start --- .github/workflows/screenshots-in-pr.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/screenshots-in-pr.yml b/.github/workflows/screenshots-in-pr.yml index 8fec7eb50..32fd10501 100644 --- a/.github/workflows/screenshots-in-pr.yml +++ b/.github/workflows/screenshots-in-pr.yml @@ -14,9 +14,12 @@ jobs: run: npm install - name: Start the server - run: npm run build && npm run start & + run: | + npm run build + npm run start + npx wait-on http://localhost:3001 env: - NODE_ENV: development + NODE_ENV: test - name: Run Cypress tests run: npx cypress run --e2e