From 62752031a4b498767e7e8a361ec5e5a9e6cfdb69 Mon Sep 17 00:00:00 2001 From: theresa Date: Fri, 8 Oct 2021 16:01:35 +0200 Subject: [PATCH] Tests: Update selector in acceptance test --- frontend/tests/acceptance-private/authentication.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/tests/acceptance-private/authentication.js b/frontend/tests/acceptance-private/authentication.js index e1d4f9534..8c4cd6371 100644 --- a/frontend/tests/acceptance-private/authentication.js +++ b/frontend/tests/acceptance-private/authentication.js @@ -37,7 +37,7 @@ test.meta("testID", "authentication-001")("Login and Logout", async (t) => { .ok(); await page.openNav(); await t - .click(Selector(".nav-logout")) + .click(Selector('div[title="Logout"]')) .expect(Selector(".input-name input").visible) .ok() .expect(Selector(".input-search input").visible) @@ -93,7 +93,7 @@ test.meta("testID", "authentication-003")("Change password", async (t) => { .notOk() .click(".action-confirm"); await page.openNav(); - await t.click(Selector(".nav-logout")); + await t.click(Selector('div[title="Logout"]')); await page.login("admin", "photoprism"); await t .navigateTo("/archive") @@ -112,9 +112,9 @@ test.meta("testID", "authentication-003")("Change password", async (t) => { .typeText(Selector(".input-retype-password input"), "photoprism", { replace: true }) .click(".action-confirm"); await page.openNav(); - await t.click(Selector(".nav-logout")); + await t.click(Selector('div[title="Logout"]')); await page.login("admin", "photoprism"); await t.expect(Selector(".input-search input").visible).ok(); await page.openNav(); - await t.click(Selector(".nav-logout")); + await t.click(Selector('div[title="Logout"]')); });