From 7157f9a8a9358a4c9f41071e54aa8e93caeba93d Mon Sep 17 00:00:00 2001 From: Daniil Tkachev Date: Thu, 16 Jan 2025 12:20:15 +0100 Subject: [PATCH] TC-47 Test cypress e2e --- .github/oxid-esales/cypress.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/oxid-esales/cypress.sh b/.github/oxid-esales/cypress.sh index d6ccc0e..d0febaf 100755 --- a/.github/oxid-esales/cypress.sh +++ b/.github/oxid-esales/cypress.sh @@ -117,6 +117,7 @@ docker compose up -d || { } EXIT_CODE=$? + echo "Waiting for services to stabilize..." sleep 30 @@ -148,9 +149,9 @@ fi # Exit with the Cypress exit code if [ $EXIT_CODE -eq 0 ]; then - echo "Cypress tests passed successfully!" + echo -e "${GREEN}Cypress tests passed successfully!${NC}" exit 0 else - echo "Cypress tests failed with exit code: $EXIT_CODE" + echo -e "${RED}Cypress tests failed with exit code: $EXIT_CODE ${NC}" exit $EXIT_CODE fi