When I execute that file with Mocha, I get the following test results:
Spectron
√ should start the app
√ should find #app with client.waitForExist()
√ should find #app with client.$().isExisting()
1) should find #app with client.$().waitForExist()
√ should close the app
4 passing (8s)
1 failing
1) Spectron
should find #app with client.$().waitForExist():
Error: element ("#app") still not existing after 5000ms
at new WaitUntilTimeoutError (node_modules\webdriverio\build\lib\utils\ErrorHandler.js:149:12)
at C:\████████████\hello-electron\node_modules\webdriverio\build\lib\commands\waitUntil.js:29:19
Why does the test fail? Any help would be much appreciated. 😃
While writing a bunch of UI tests, I noticed this weird issue. I can't really tell if it's caused by Spectron or by WebdriverIO or by me being stupid.
I'm using:
<div id="app">
Here's my sample test file:
When I execute that file with Mocha, I get the following test results:
Why does the test fail? Any help would be much appreciated. 😃