I am running a test using WebdriverIO and precisely on this line:
await browser.waitForVisible('#tx-sent li', 15000)
Every now and then, I get a Promise rejection error:
Error: Promise was rejected with the following reason: java.net.SocketException: Connection reset by peer (connect failed)
Is there a way to catch this promise rejection so that it doesn't cause the entire test to fail? In other words I want to catch this Promise rejection and resolve it.