From 134095ee7cf1f309381f82ae98b1cb7afbcc434f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 2 Apr 2018 11:51:07 -0700 Subject: [PATCH] fix test --- test/test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.js b/test/test.js index d2386ac..4bde64b 100644 --- a/test/test.js +++ b/test/test.js @@ -133,11 +133,11 @@ describe('Application life cycle test', function () { }).then(function () { return browser.findElement(by.id('top-right-menu')).click(); }).then(function () { - return visible(by.xpath('//*[text()="Settings "]')); + return visible(by.xpath('//*[contains(text(), "Change Password")]')); }).then(function () { - return browser.findElement(by.xpath('//*[text()="Settings "]')).click(); + return browser.findElement(by.xpath('//*[contains(text(),"Change Password")]')).click(); }).then(function () { - return browser.wait(until.elementLocated(by.xpath('//*[text()="Generate"]')), TEST_TIMEOUT); + return browser.wait(until.elementLocated(by.xpath('//*[contains(text(), "Change Password")]')), TEST_TIMEOUT); }).then(function () { callback(); });