Commit 1c8ae947 authored by Jure's avatar Jure Committed by Giannis Kopanas

test(ci): fix CI e2e tests

parent e1c877ac
......@@ -68,7 +68,7 @@ test:chrome:
script:
- cd ${HOME}
# specify host here else it confuses the linked postgres image
- PGHOST=postgres npx testcafe 'chrome:headless --no-sandbox' test/**/*.test.js
- PGHOST=postgres npm run test:e2e:ci:chrome
test:firefox:
image: $IMAGE_ORG/$IMAGE_NAME:$CI_COMMIT_SHA
......@@ -87,7 +87,7 @@ test:firefox:
script:
- cd ${HOME}
# specify host here else it confuses the linked postgres image
- PGHOST=postgres npx testcafe firefox:headless test/**/*.test.js
- PGHOST=postgres npm run test:e2e:ci:firefox
push:latest:
image: docker:latest
......
......@@ -100,6 +100,9 @@
"scripts": {
"test:chrome": "NODE_ENV=test testcafe $(testcafe -b | grep chrom*) 'test/**/*.test.js'",
"test:firefox": "NODE_ENV=test testcafe firefox 'test/**/*.test.js'",
"test:e2e:ci": "npm run test:e2e:ci:chrome && npm run test:e2e:ci:firefox",
"test:e2e:ci:chrome": "testcafe 'chrome:headless --no-sandbox' 'test/**/*.test.js'",
"test:e2e:ci:firefox": "testcafe firefox:headless 'test/**/*.test.js'",
"test": "npm run test:chrome && npm run test:firefox",
"clean": "rm -rf node_modules",
"lint": "npm run lint:js && npm run lint:style",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment