How to make test get FAIL status, not ERROR except using browser.expect #2631
Unanswered
Pieras2
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
Each time I call methods like:
... the test ends with test error in summary while I wish it was test fail.
In case test is reported as "failed" and not an "error", I see such a view on Azure DevOps (the expected one with fails listed):
Unfortunately waitForElementVisible make test error not test failure, even I switch abortOnAssertionFailure to "false" and call in its callback await this.assert.fail() I still get test error instead of fail :(
How to make item not present (waitForElement...) be a test fail not an error?
Or how to call fail on my own (e.g. as a result of api call in callback)
I am using NW ver 1.4.3.
Beta Was this translation helpful? Give feedback.
All reactions