dequelabs / watcher-examples

2 stars 7 forks source link

wdio/test-runner/typescript - forgot-password test needs to be updated to correctly wait for element to be displayed #178

Closed Zidious closed 5 months ago

Zidious commented 5 months ago

The forgot-password.test.ts file includes this test:

https://github.com/dequelabs/watcher-examples/blob/19b63e1e6b0369d9a3c75e5dead9172c575c598b/wdio/test-runner/typescript/forgot-password.test.ts#L26-L27

We don't have access to document here. We should update this test to do something like:

   await browser.waitUntil(async () => {
        // "Internal Server Error" header
        return (await $('body > h1')).isDisplayed()
      })