From 007a0c7a41e576ca8f36cfffee2c72ee86a0086c Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Tue, 4 Jul 2017 01:05:02 -0700 Subject: [PATCH] Fixed test for first time flow load --- test/nightwatch/first_time_flow.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/nightwatch/first_time_flow.js b/test/nightwatch/first_time_flow.js index 39b37f6..235a999 100644 --- a/test/nightwatch/first_time_flow.js +++ b/test/nightwatch/first_time_flow.js @@ -2,8 +2,8 @@ module.exports = { 'Welcome page loads' : function (browser) { browser .url('http://localhost:5050') - .waitForElementVisible('body', 1000) - .assert.containsText('body', 'Welcome to Polaris') - .end(); + .waitForElementVisible('#initial-setup-page', 1000); + browser.expect.element("#initial-setup-page h2").text.to.contain("Welcome to Polaris"); + browser.end(); } };