Skip to content
Snippets Groups Projects
Commit aa0c16ae authored by Tamlyn Rhodes's avatar Tamlyn Rhodes
Browse files

Merge branch 'change-test-browser' into 'master'

build: allow test browser to be configured with environment var

See merge request !45
parents 48325d0a c6b9dbb6
No related branches found
No related tags found
1 merge request!45build: allow test browser to be configured with environment var
Pipeline #6728 passed with stages
in 3 minutes and 33 seconds
......@@ -56,6 +56,7 @@ test:e2e:
stage: test
variables:
GIT_STRATEGY: none
BROWSER: chrome:headless --no-sandbox
# setup data for postgres image
POSTGRES_USER: test
POSTGRES_PASSWORD: pw
......@@ -68,7 +69,7 @@ test:e2e:
script:
- cd ${HOME}
# specify host here else it confuses the linked postgres image
- PGHOST=postgres npm run test:e2e:ci
- PGHOST=postgres npm run test:e2e
push:latest:
image: docker:latest
......
......@@ -34,8 +34,7 @@
"start:styleguide": "docker-compose run --no-deps -p 6060:6060 app yarn run styleguide",
"styleguide": "styleguidist server",
"test": "jest",
"test:e2e": "NODE_ENV=test testcafe chrome 'test/**/*.e2e.js'",
"test:e2e:ci": "testcafe 'chrome:headless --no-sandbox' 'test/**/*.e2e.js'"
"test:e2e": "NODE_ENV=test testcafe \"${BROWSER:-chrome}\" 'test/**/*.e2e.js'"
},
"lint-staged": {
"*.css": "stylelint",
......
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