Skip to content

Commit

Permalink
Merge branch 'develop' into e2e/3749-add-ach-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelzaleski authored Feb 27, 2025
2 parents c123216 + df929cc commit 103fdec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions tests/e2e/bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,11 @@ for arg in "$@"; do
fi
done

if [[ *"wordpress" == "$(docker compose -p wcstripe-e2e ps --services --filter "status=running" | grep wordpress)" ]]; then
if [[ "wordpress" != "$(docker compose -p wcstripe-e2e ps --services --filter "status=running" | grep wordpress)" ]]; then
error "Docker E2E containers are not running, please start them with 'npm run test:e2e-up' or 'npm run test:e2e-setup' and try again."
exit 1
fi

set -e

. ./tests/e2e/bin/common.sh

cd "$CWD"

TEST_ENV="$TEST_ENV DOCKER=true E2E_ROOT=${E2E_ROOT} BASE_URL='http://localhost:8088'"
TEST_ENV="$TEST_ENV ADMIN_USER='admin' ADMIN_PASSWORD='admin'"

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/bin/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e
. ./tests/e2e/bin/common.sh

step "Starting E2E docker containers"
CWD="$CWD" redirect_output docker compose -p wcstripe-e2e --env-file $E2E_ROOT/config/local.env -f "$E2E_ROOT/env/docker-compose.yml" up -d
CWD="$CWD" redirect_output docker compose -p wcstripe-e2e --env-file $E2E_ROOT/config/local.env -f "$E2E_ROOT/env/docker-compose.yml" up -d

0 comments on commit 103fdec

Please sign in to comment.