Fix testcafe cmds

This commit is contained in:
Aarni Halinen
2021-01-15 02:42:12 +02:00
parent 4693d10fcc
commit 9b6498c6c9
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ build:
needs: ["install"]
stage: build
script:
- npm run build
- NEXT_PUBLIC_API_URL=https://api.dev.sik.party/api npm run build
dependencies:
- install
artifacts:
@@ -55,7 +55,7 @@ test:e2e:
needs: ["install", "build"]
stage: test
script:
- NEXT_PUBLIC_API_URL=https://api.dev.sik.party/api npm run test:e2e
- npm run test:e2e
artifacts:
paths:
- e2e-screenshots
+4 -4
View File
@@ -28,10 +28,10 @@
"start": "next dev",
"start-prod": "next start",
"test": "npm run test:e2e:verbose",
"test:e2e": "npm-run-all -p -r start-prod test:e2e:testcafe",
"test:e2e:verbose": "npm-run-all -p -r start-prod test:e2e:testcafe:verbose",
"test:e2e:testcafe": "testcafe -S -s 'e2e-screenshots' --app-init-delay 2000 chrome:headless tests/testcafe",
"test:e2e:testcafe:verbose": "testcafe -S -s 'e2e-screenshots' --app-init-delay 2000 chrome tests/testcafe"
"test:e2e": "npm-run-all -p -r start-prod testcafe",
"test:e2e:verbose": "npm-run-all -p -r start-prod testcafe:verbose",
"testcafe": "testcafe -S -s 'e2e-screenshots' --app-init-delay 2000 chrome:headless tests/testcafe",
"testcafe:verbose": "testcafe -S -s 'e2e-screenshots' --app-init-delay 2000 chrome tests/testcafe"
},
"husky": {
"hooks": {