Right now, the waitFor commands (like waitForElementVisible) when used with async/await syntax do not abort the test on failure, even when abortOnFailure is set to true.
This PR fixes that by rejecting the command node upon failure when abortOnFailure is set to true, and thus aborting the test.
The implementation around this was merged recently in #4161.
Right now, the
waitFor
commands (likewaitForElementVisible
) when used withasync/await
syntax do not abort the test on failure, even whenabortOnFailure
is set totrue
.This PR fixes that by rejecting the command node upon failure when
abortOnFailure
is set totrue
, and thus aborting the test.The implementation around this was merged recently in #4161.