From 94a95406da5a340cecd6d98272521a277fedfcc2 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Fri, 5 Jan 2018 15:58:58 -0800 Subject: [PATCH] Switch from phantomjs to headless chrome --- ui/testem.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ui/testem.js b/ui/testem.js index 9a0e1deb1..630bfd548 100644 --- a/ui/testem.js +++ b/ui/testem.js @@ -2,6 +2,21 @@ module.exports = { test_page: 'tests/index.html?hidepassed', disable_watching: true, - launch_in_ci: ['PhantomJS'], + launch_in_ci: ['Chrome'], launch_in_dev: ['Chrome'], + browser_args: { + // New format in testem/master, but not in a release yet + // Chrome: { + // ci: ['--headless', '--disable-gpu', '--remote-debugging-port=9222', '--window-size=1440,900'], + // }, + Chrome: { + mode: 'ci', + args: [ + '--headless', + '--disable-gpu', + '--remote-debugging-port=9222', + '--window-size=1440,900', + ], + }, + }, };