Skip to content

Commit 5ff1cb4

Browse files
committed
chore(travis): use headless Chrome in tests
Closes angular#444
1 parent 398c09c commit 5ff1cb4

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.travis.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@ cache:
1111
directories:
1212
- "$HOME/.npm"
1313

14-
before_install:
15-
- export DISPLAY=":99.0"
16-
- sh -e /etc/init.d/xvfb start
17-
1814
install:
1915
- npm install
2016

2117
script:
22-
- npm run test-single-run
23-
- (npm start > /dev/null &) && npm run protractor
18+
- npm run test-single-run -- --browsers ChromeHeadless
19+
- (npm start > /dev/null &) && npm run protractor -- --capabilities.chromeOptions.args headless

e2e-tests/protractor.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ exports.config = {
88
],
99

1010
capabilities: {
11-
'browserName': 'chrome'
11+
browserName: 'chrome'
1212
},
1313

1414
baseUrl: 'http://localhost:8000/',

0 commit comments

Comments
 (0)