Fix test
This commit is contained in:
@@ -194,10 +194,10 @@ describe('Application life cycle test', function () {
|
|||||||
await browser.findElement(By.xpath('//li[@role="menuitem" and @aria-label="Sign out"]')).click();
|
await browser.findElement(By.xpath('//li[@role="menuitem" and @aria-label="Sign out"]')).click();
|
||||||
await browser.sleep(2000);
|
await browser.sleep(2000);
|
||||||
|
|
||||||
// if (await browser.findElements(By.xpath('//button[contains(text(), "I don\'t want my encrypted messages")]')).then(found => !!found.length)) {
|
if (await browser.findElements(By.xpath('//button[contains(text(), "I don\'t want my encrypted messages")]')).then(found => !!found.length)) {
|
||||||
await browser.findElement(By.xpath('//button[contains(text(), "I don\'t want my encrypted messages")]')).click();
|
await browser.findElement(By.xpath('//button[contains(text(), "I don\'t want my encrypted messages")]')).click();
|
||||||
await browser.sleep(3000);
|
await browser.sleep(3000);
|
||||||
// }
|
}
|
||||||
|
|
||||||
await waitForElement(By.xpath('//h1[text()="Sign in"]'));
|
await waitForElement(By.xpath('//h1[text()="Sign in"]'));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user