From ef86abc9a9aede8d1a63427a8ae884b747dd21a8 Mon Sep 17 00:00:00 2001 From: Splines Date: Mon, 1 Jul 2024 22:07:07 +0200 Subject: [PATCH] Wait for MaMpf before opening cypress UI --- docker/test/cypress-interactive.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker/test/cypress-interactive.yml b/docker/test/cypress-interactive.yml index c5b27e266..b4ce01f59 100644 --- a/docker/test/cypress-interactive.yml +++ b/docker/test/cypress-interactive.yml @@ -3,7 +3,11 @@ services: cypress: # https://on.cypress.io/command-line#cypress-open - entrypoint: cypress open --project /mampf-tests/ --e2e --browser chrome + entrypoint: > + bash -c "while ! curl -s $$CYPRESS_baseUrl > /dev/null; + do echo waiting for MaMpf to come online at $$CYPRESS_baseUrl; + sleep 1; done; + cypress open --project /mampf-tests/ --e2e --browser chrome" environment: # for X11/Wayland in WSLg - DISPLAY