Fixup tests

This commit is contained in:
Johannes Zellner
2024-05-14 19:29:26 +02:00
parent fd80c93278
commit 7b29adda08

View File

@@ -166,9 +166,9 @@ describe('Application life cycle test', function () {
async function logout() {
await browser.get('https://' + app.fqdn + '/#/home');
await browser.sleep(5000);
await waitForElement(By.xpath('//div[@role="button" and @title="User menu"]'));
await waitForElement(By.xpath('//div[@aria-label="User menu"]'));
await browser.findElement(By.xpath('//div[@role="button" and @title="User menu"]')).click();
await browser.findElement(By.xpath('//div[@aria-label="User menu"]')).click();
await browser.sleep(2000);
await browser.findElement(By.xpath('//li[@role="menuitem" and @aria-label="Sign out"]')).click();