Skip to content
Snippets Groups Projects
Commit 778b1a83 authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Try using headless chrome for integration tests

parent f9037229
No related merge requests found
...@@ -3,9 +3,6 @@ sudo: required ...@@ -3,9 +3,6 @@ sudo: required
dist: trusty dist: trusty
addons: addons:
chrome: stable chrome: stable
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
node_js: node_js:
- 6 - 6
cache: cache:
......
...@@ -34,8 +34,11 @@ class SeleniumHelper { ...@@ -34,8 +34,11 @@ class SeleniumHelper {
} }
getDriver () { getDriver () {
const chromeCapabilities = webdriver.Capabilities.chrome();
chromeCapabilities.set('chromeOptions', {args: ['--headless']});
this.driver = new webdriver.Builder() this.driver = new webdriver.Builder()
.forBrowser('chrome') .forBrowser('chrome')
.withCapabilities(chromeCapabilities)
.build(); .build();
return this.driver; return this.driver;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment