This commit is contained in:
Girish Ramakrishnan 2022-11-11 10:51:12 +01:00
parent 4800f84077
commit 00b781abe3
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ describe('Application life cycle test', function () {
async function logout() { async function logout() {
await browser.get(`https://${app.fqdn}/`); await browser.get(`https://${app.fqdn}/`);
await waitForElement(By.xpath('//span[contains(text(), "Buckets")]')); await waitForElement(By.xpath('//span[contains(text(), "Buckets")]'));
await browser.findElement(By.xpath('//div/span[contains(text(), "Logout")]')).click(); const button = await browser.findElement(By.xpath('//div/span[contains(text(), "Sign Out")]'));
await browser.executeScript('arguments[0].scrollIntoView(false)', button);
await button.click();
await waitForElement(By.id('accessKey')); await waitForElement(By.id('accessKey'));
} }