From 4bb4b411dfb8d2dfb939350167c1a7e6e1556c37 Mon Sep 17 00:00:00 2001 From: Aashwin Mohan Date: Thu, 9 May 2024 09:11:13 +0100 Subject: [PATCH] Update test urls --- docker-compose.yml | 1 + run-e2e-tests.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 84fe66ef..de2cca2d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -26,6 +26,7 @@ services: - MAGENTO_USERNAME=admin - MAGENTO_PASSWORD=password1 - MAGENTO_EMAIL=admin@test.com + - MAGENTO_HOST=local.dev.rvvuptech.com - RVVUP_API_KEY=$RVVUP_API_KEY - RVVUP_PLUGIN_VERSION=$RVVUP_PLUGIN_VERSION - MAGENTO_REPO_PUBLIC_KEY=$MAGENTO_REPO_PUBLIC_KEY diff --git a/run-e2e-tests.sh b/run-e2e-tests.sh index 1c8b134a..20599526 100755 --- a/run-e2e-tests.sh +++ b/run-e2e-tests.sh @@ -3,7 +3,7 @@ start=$(date +%s) docker compose up -d --build attempt=1 while true; do - http_status=$(curl -o /dev/null -s -w "%{http_code}\n" -I "http://localhost/magento_version") + http_status=$(curl -o /dev/null -s -w "%{http_code}\n" -I "http://local.dev.rvvuptech.com/magento_version") if [ "$http_status" -eq 200 ]; then echo -e "\rServer responded with 200 OK / Time taken: $(($(date +%s) - start)) seconds, continuing..." @@ -16,7 +16,7 @@ while true; do done if [ "$1" == "--ui" ]; then - ENV TEST_BASE_URL=http://localhost npx playwright test --ui + ENV TEST_BASE_URL=http://local.dev.rvvuptech.com npx playwright test --ui else - ENV TEST_BASE_URL=http://localhost npx playwright test + ENV TEST_BASE_URL=http://local.dev.rvvuptech.com npx playwright test fi