Skip to content

Commit

Permalink
fix(e2e): force logout and wait to fix Firefox tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hejtful committed Dec 12, 2023
1 parent 84d548e commit 1e9fd33
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/e2e-tests/tests/431-multimedia-plugin-image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ const logout = async (I: CodeceptJS.I) => {
I.waitForText('Anmelden', 20)
}

Before(popupWarningFix)
Before(({ I }) => {
popupWarningFix({ I })
logout(I)
})

// Currently, we're not displaying any messages when users try to upload image
// while not logged in. This scenario should be added when that is implemented.
Expand All @@ -49,6 +52,9 @@ Scenario.todo('Multimedia plugin unauthorized image upload')
Scenario.todo('Multimedia plugin too big image upload')

Scenario('Multimedia plugin successful image upload', async ({ I }) => {
// Wait as a fix for: https://github.com/microsoft/playwright/issues/20749
I.wait(1)

I.amOnPage('/entity/create/Article/1377')

await login(I)
Expand Down

0 comments on commit 1e9fd33

Please sign in to comment.