woocommerce/tests/bin/run-e2e-CI.sh

15 lines
246 B
Bash
Executable File

#!/usr/bin/env bash
if [[ ${RUN_E2E} == 1 ]]; then
WP_SITE_URL="http://localhost:8080"
# Start xvfb to run the tests
export BASE_URL="$WP_SITE_URL"
export DISPLAY=:99.0
sh -e /etc/init.d/xvfb start
sleep 3
# Run the tests
npm test
fi