Skip to content

Commit

Permalink
fix(e2e): fix flaky login/logout in multimedia image tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hejtful committed Dec 11, 2023
1 parent e01381d commit 63cc4ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/e2e-tests/tests/431-multimedia-plugin-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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)
Expand Down

0 comments on commit 63cc4ba

Please sign in to comment.