During my test with WebdriverIO, I consistently encounter an issue specifically with this line of code:
await browser.waitForVisible('#tx-sent li', 15000)
Intermittently, a Promise rejection error occurs:
Error: Promise was rejected with the following reason: java.net.SocketException: Connection reset by peer (connect failed)
Is there a way to handle this promise rejection without causing the entire test to fail? I am looking for a solution to catch and resolve this Promise rejection.