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 branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,6 @@ sudo: required
dist: trusty
addons:
chrome: stable
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
node_js:
- 6
cache:
......
......@@ -34,8 +34,11 @@ class SeleniumHelper {
}
getDriver () {
const chromeCapabilities = webdriver.Capabilities.chrome();
chromeCapabilities.set('chromeOptions', {args: ['--headless']});
this.driver = new webdriver.Builder()
.forBrowser('chrome')
.withCapabilities(chromeCapabilities)
.build();
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