#!/bin/bash set -euxo pipefail DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" cd "$DIR" if [ "${RUN_QUICKSTART:-true}" == "true" ]; then source ./run-quickstart.sh fi set +x echo "Activating virtual environment" source venv/bin/activate set -x # set environment variables for the test source ./set-test-env-vars.sh python -c 'from tests.cypress.integration_test import ingest_data; ingest_data()' cd tests/cypress yarn install source "$DIR/set-cypress-creds.sh" if [ "${RUN_UI:-true}" == "true" ]; then npx cypress open \ --env "ADMIN_DISPLAYNAME=$CYPRESS_ADMIN_DISPLAYNAME,ADMIN_USERNAME=$CYPRESS_ADMIN_USERNAME,ADMIN_PASSWORD=$CYPRESS_ADMIN_PASSWORD" fi