From a46f539578f0192d08bc292097fa06ec600fc056 Mon Sep 17 00:00:00 2001 From: Kevin Gartland Date: Wed, 13 Sep 2023 11:29:49 -0400 Subject: [PATCH] add separate command for windows --- web/justfile | 7 +++++-- web/package.json | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/web/justfile b/web/justfile index 1d2097a27..104ea211c 100644 --- a/web/justfile +++ b/web/justfile @@ -75,8 +75,11 @@ build-and-test-ci-e2e target: export CYPRESS_CONNECT_ADDRESS="http://$CONNECT_IP:3939/connect/\#/login" # install cypress npx cypress install - - npm run test:e2e:ci + if[ {{target}} ~= "windows"] then; + npm run test-win:2e2:ci + else + npm run test:e2e:ci + fi # run unit tests one time test-unit: diff --git a/web/package.json b/web/package.json index c3de2fac2..db73d8c5b 100644 --- a/web/package.json +++ b/web/package.json @@ -13,9 +13,11 @@ "test:unit": "vitest", "test:e2e:dev": "start-server-and-test dev http-get://localhost:9000 cypress:run", "test:e2e:ci": "start-server-and-test --expect 401 'just ../start-agent-for-e2e' http-get://127.0.0.1:9000 cypress:run:ci", + "test-win:e2e:ci": "start-server-and-test --expect 401 'just ../start-agent-for-e2e' http-get://127.0.0.1:9000 cypress-win:run:ci", "cypress:open": "cypress open", "cypress:run": "cypress run", - "cypress:run:ci": "cypress run --env publishing-token=abc123,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS" + "cypress:run:ci": "cypress run --env publishing-token=abc123,CYPRESS_CONNECT_ADDRESS=$CYPRESS_CONNECT_ADDRESS", + "cypress-win:run:ci": "cypress run --env publishing-token=abc123,CYPRESS_CONNECT_ADDRESS=%CYPRESS_CONNECT_ADDRESS%" }, "dependencies": { "@quasar/extras": "^1.16.5",