From 63cc4ba6214a84f9a4fda64369a30e28c3359fab Mon Sep 17 00:00:00 2001 From: Vitomir Budimir Date: Mon, 11 Dec 2023 17:46:46 +0100 Subject: [PATCH] fix(e2e): fix flaky login/logout in multimedia image tests --- apps/e2e-tests/tests/431-multimedia-plugin-image.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/e2e-tests/tests/431-multimedia-plugin-image.ts b/apps/e2e-tests/tests/431-multimedia-plugin-image.ts index 57df53baf3..4f41f22b07 100644 --- a/apps/e2e-tests/tests/431-multimedia-plugin-image.ts +++ b/apps/e2e-tests/tests/431-multimedia-plugin-image.ts @@ -19,7 +19,7 @@ const login = async (I: CodeceptJS.I) => { I.fillField('Benutzername oder E-Mailadresse', 'dal') I.fillField('Passwort', '123456') I.click('Anmelden', "button[value='password']") - I.waitForText('Willkommen dal!', 10) + I.waitForElement(locate('img').withAttr({ alt: 'Avatar' }), 10) } const logout = async (I: CodeceptJS.I) => { @@ -35,8 +35,7 @@ const logout = async (I: CodeceptJS.I) => { I.say('Log out') I.click('Benutzer') I.click('Abmelden') - I.waitForText('Bis bald!', 20) - I.see('Anmelden') + I.waitForText('Anmelden', 20) } Before(popupWarningFix)