File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ IMAGE_TAG=latest
2
2
PORT = 3001
3
3
VNC_PORT = 5920
4
4
5
- USE_JUPYTERLITE_DEV_URL = false
5
+ USE_JUPYTERLITE_DEV_URL = true
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"test" : " CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress open" ,
8
- "test:headless" : " export TAGS=${TAGS:-'not @ignore'}; CYPRESS_BASE_URL=${CYPRESS_BASE_URL:-'http://localhost:3001'} cypress run -e TAGS= \" $TAGS \" " ,
8
+ "test:headless" : " ./ run-tests.sh " ,
9
9
"test:healthcheck" : " TAGS='not @ignore and @notebook_healthcheck' npm run test:headless" ,
10
10
"lint" : " npx eslint cypress && prettier --write cypress"
11
11
},
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Set default TAGS if not provided
4
+ TAGS=${TAGS:- " not @ignore" }
5
+
6
+ # If not using dev JupyterLite, exclude notebook healthcheck tests
7
+ if [ " $USE_JUPYTERLITE_DEV_URL " != " true" ]; then
8
+ TAGS=" $TAGS and not @notebook_healthcheck"
9
+ fi
10
+
11
+ # Set default Cypress base URL
12
+ CYPRESS_BASE_URL=${CYPRESS_BASE_URL:- " http://localhost:3001" }
13
+
14
+ # Run Cypress tests
15
+ cypress run -e TAGS=" $TAGS "
You can’t perform that action at this time.
0 commit comments