Skip to content

Commit

Permalink
Update test urls (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
aashwin-rvvup authored May 9, 2024
1 parent ed10a38 commit 08ca026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ services:
- MAGENTO_USERNAME=admin
- MAGENTO_PASSWORD=password1
- [email protected]
- 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
Expand Down
6 changes: 3 additions & 3 deletions run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand All @@ -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

0 comments on commit 08ca026

Please sign in to comment.