Error: expected { queue: { chrome: { options: [...
# random
n
Error: expected { queue: { chrome: { options: [Object], runtimeClientPromise: {} }, flushCount: 1, commandQueue: { '0': [Object], '1': [] }, lastWaitAll: {} }, lastReturnPromise: {} } to equal true at Assertion.assert (node_modules\expect.js\index.js9613) at Assertion.be.Assertion.equal (node_modules\expect.js\index.js21610) at Assertion.(anonymous function) [as be] (node_modules\expect.js\index.js6924) at Context.<anonymous> (test\GeneralNavigationAndHomePage.js1351)
m
chromeless.exists() returns a promise which needs to resolve before you can assert anything about it's result
n
thanks
Do you have any idea to help me how to verify this testcase is passed or failed?
m
The Chromeless API is asynchronous, so you must write async-await code, or use a Promise chain.
it uses async-await... which requires a recent version of Node
n
Many thanks Marco
Hi Marco, have a ever met this error Error: Timeout of 2000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.