Skip to content

Commit

Permalink
chore(e2e): don't rely on popup for login tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hejtful committed Dec 12, 2023
1 parent cee4e3f commit e327350
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/e2e-tests/tests/200-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Scenario('Login', ({ I }) => {
// More robust selector
I.click('Anmelden', "button[value='password']")

I.waitForText('Willkommen dal!', 10)
I.waitForElement(locate('img').withAttr({ alt: 'Avatar' }), 10)
})

Scenario('Logout', ({ I }) => {
Expand All @@ -24,8 +24,7 @@ Scenario('Logout', ({ I }) => {
I.click('Benutzer')

I.click('Abmelden')
I.waitForText('Bis bald!', 10)
I.see('Anmelden')
I.waitForText('Anmelden', 10)
})

// make sure user is logged out at the end of the tests

0 comments on commit e327350

Please sign in to comment.