This commit is contained in:
Girish Ramakrishnan 2018-04-02 11:51:07 -07:00
parent 5a3eb48466
commit 134095ee7c
1 changed files with 3 additions and 3 deletions

View File

@ -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();
});