Fix testcafe cmds
This commit is contained in:
+2
-2
@@ -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
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user