allow users to set port for cypress runs (#16533)

This commit is contained in:
Hugh A. Miles II 2021-09-22 11:24:56 -04:00 committed by GitHub
parent 99d15b25b0
commit 77ae2e1826
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -66,7 +66,7 @@ venv:
test -d venv || ${PYTHON} -m venv venv # setup a python3 virtualenv
. venv/bin/activate
make activate:
activate:
source venv/bin/activate
pre-commit:
@ -90,3 +90,11 @@ flask-app:
node-app:
cd superset-frontend; npm run dev-server
build-cypress:
cd superset-frontend; npm run build-instrumented
cd superset-frontend/cypress-base; npm install
open-cypress:
if ! [ $(port) ]; then cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:9000 npm run cypress open; fi
cd superset-frontend/cypress-base; CYPRESS_BASE_URL=http://localhost:$(port) npm run cypress open