From 7b29adda08ee9806baf974760937beb1e685390a Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 14 May 2024 19:29:26 +0200 Subject: [PATCH] Fixup tests --- test/test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index 35c7c00..5acca04 100644 --- a/test/test.js +++ b/test/test.js @@ -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();