Skip to content

Commit

Permalink
Apply feedback from Dan
Browse files Browse the repository at this point in the history
Co-authored-by: Dan Bjorge <[email protected]>
  • Loading branch information
Zidious and dbjorge authored Mar 7, 2024
1 parent 413dd52 commit f811eaf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wdio/test-runner/typescript/forgot-password.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ describe('forgot password', () => {
await $('#email').setValue('[email protected]')
await $('button[type="submit"]').click()
await browser.waitUntil(async () => {
// "Internal Server Error" header
return (await $('body > h1')).isDisplayed()
const h1 = await $('h1')
const h1text = await h1.getText()
return h1text.includes('Internal Server Error')
})
})
})
Expand Down

0 comments on commit f811eaf

Please sign in to comment.