From b402c8447d3002e7c3c85291d08274f6bc074817 Mon Sep 17 00:00:00 2001 From: Harry Spriggs Date: Thu, 19 Mar 2015 09:50:18 +0000 Subject: [PATCH 1/2] Android Nexus 7HD. Emulates stock browser (default on HTC and Samsung phones) which currently fails js-success test. --- config/nightwatch.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/nightwatch.json b/config/nightwatch.json index ed4213c4..219e773b 100644 --- a/config/nightwatch.json +++ b/config/nightwatch.json @@ -102,6 +102,15 @@ "deviceName": "iPad Simulator", "device-orientation": "portrait" } + }, + "Android_Nexus7HD": { + "desiredCapabilities": { + "browserName": "chrome", + "platform": "Linux", + "version": "4.4", + "deviceName": "Google Nexus 7 HD Emulator", + "device-orientation": "portrait" + } } } } From d9199924ed93eaad670a3b64aa5b1f6d792d27a2 Mon Sep 17 00:00:00 2001 From: Harry Spriggs Date: Thu, 19 Mar 2015 10:51:12 +0000 Subject: [PATCH 2/2] Add android to default browser list --- tasks/nightwatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/nightwatch.js b/tasks/nightwatch.js index 8bb01cf0..a5fd19c1 100644 --- a/tasks/nightwatch.js +++ b/tasks/nightwatch.js @@ -10,7 +10,7 @@ var path = require('path'); module.exports = function(opts) { var test = opts.test; - var env = opts.env || 'ie10,firefox36,chrome41,iphone7'; + var env = opts.env || 'ie10,firefox36,chrome41,iphone7,Android_Nexus7HD'; var config = opts.config || path.join(__dirname, '..', 'config', 'nightwatch.json'); return exec('nightwatch' + ' --env ' + env