From f811eaf4b33d5226ef91548ed5e6a902933b6282 Mon Sep 17 00:00:00 2001 From: Gabe <41127686+Zidious@users.noreply.github.com> Date: Thu, 7 Mar 2024 16:40:53 +0000 Subject: [PATCH] Apply feedback from Dan Co-authored-by: Dan Bjorge --- wdio/test-runner/typescript/forgot-password.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wdio/test-runner/typescript/forgot-password.test.ts b/wdio/test-runner/typescript/forgot-password.test.ts index 851108e..86870ae 100644 --- a/wdio/test-runner/typescript/forgot-password.test.ts +++ b/wdio/test-runner/typescript/forgot-password.test.ts @@ -24,8 +24,9 @@ describe('forgot password', () => { await $('#email').setValue('person@place.biz') 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') }) }) })