From 7a2243437efa4f98c815f33944f89581abf53f26 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 20 Dec 2024 13:45:17 +0100 Subject: [PATCH] add additional wait for frontend --- .github/workflows/test_e2e.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index a016fa4f2..ba981860d 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -48,6 +48,12 @@ jobs: cd e2e-tests/ yarn + - name: Wait for the frontend to be ready + run: | + for i in {1..10}; do + curl -s http://localhost:3000/login && break || sleep 5 + done + - name: End-to-end tests | run tests id: e2e-tests run: |