Skip to content

Commit

Permalink
separate windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Gartland committed Nov 13, 2023
1 parent ae7929b commit 67bc08b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion test/cy/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,9 @@ test-deploy:
pip install -r ../setup/requirements.txt
export CONNECT_SERVER="$(python ../setup/connect_setup.py)"
export CONNECT_API_KEY="$(python ../setup/gen_apikey.py 'admin')"
CYPRESS_CONNECT_ADDRESS="${CONNECT_SERVER}/connect/\#/login" npm run test-deploy
export CYPRESS_CONNECT_ADDRESS="${CONNECT_SERVER}/connect/\#/login"
if [[ "$(expr substr $(uname -s) 1 10)" =~ "MINGW" ]]; then
npm run test-deploy-windows
else
npm run test-deploy
fi
4 changes: 3 additions & 1 deletion test/cy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
"start": "just ../../run publish-ui --listen 127.0.0.1:9000 --token=token -n env ./test/sample-content/fastapi-simple",
"test": "start-server-and-test --expect 401 start http-get://127.0.0.1:9000 run",
"test-deploy": "start-server-and-test --expect 401 start http-get://127.0.0.1:9000 run-deploy",
"test-deploy-windows": "start-server-and-test --expect 401 start http-get://127.0.0.1:9000 run-deploy-windows",
"open": "cypress open",
"run": "cypress run --spec ./cypress/e2e/publish-ui/*.cy.js --env token=token",
"run-deploy": "if \"%OS%\"==\"Windows_NT\"; then cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=%CYPRESS_CONNECT_ADDRESS%; else cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS; fi"
"run-deploy": "cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS",
"run-deploy-windows": "cypress run --spec ./cypress/e2e/deploy/*.cy.js --env token=token,CYPRESS_CONNECT_ADDRESS=%CYPRESS_CONNECT_ADDRESS%"
},
"devDependencies": {
"cross-env": "^7.0.3",
Expand Down

0 comments on commit 67bc08b

Please sign in to comment.