Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update testing urls #120

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading