From 81823e89cd021d95ed69d03916e14183afff6aef Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 4 Jan 2018 16:21:07 +0000 Subject: [PATCH] build(aio): fix example protractor config for Travis (#21309) Without setting the CHROME_BIN Travis will not use the correct version of Chrome for running e2e tests. Closes #20159 PR Close #21309 --- .../examples/shared/boilerplate/cli/protractor.conf.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aio/tools/examples/shared/boilerplate/cli/protractor.conf.js b/aio/tools/examples/shared/boilerplate/cli/protractor.conf.js index 7ee3b5ee86..3f413bd30f 100644 --- a/aio/tools/examples/shared/boilerplate/cli/protractor.conf.js +++ b/aio/tools/examples/shared/boilerplate/cli/protractor.conf.js @@ -9,7 +9,11 @@ exports.config = { './e2e/**/*.e2e-spec.ts' ], capabilities: { - 'browserName': 'chrome' + 'browserName': 'chrome', + // For Travis CI only + chromeOptions: { + binary: process.env.CHROME_BIN + } }, directConnect: true, baseUrl: 'http://localhost:4200/',