Skip to content

Commit

Permalink
test(e2e): refactor waitUntil statement
Browse files Browse the repository at this point in the history
Signed-off-by: Zacharias Fragkiadakis <zacfragkiadakis@gmail.com>
  • Loading branch information
QZera committed Dec 31, 2024
1 parent f06d4b9 commit 9fca347
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test/e2e/specs/settings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,9 @@ describe('Settings', () => {
// Assert that the error message is displayed in the output console
await browser.waitUntil(
async () => {
const text = await outputView.getText()
const joinedText = text.join('')
const joinedText = (await outputView.getText()).join('')

console.log({ text, joinedText })

return joinedText.includes(
'Found non-authenticated identity ✗ Error: Radicle profile not found in',
)
return joinedText.includes('✗ Error: Radicle profile not found in')
},
{ timeoutMsg: 'expected the error message to be displayed in the output console' },
)
Expand Down

0 comments on commit 9fca347

Please sign in to comment.