browser.assert breaks the run of the next tests #3420
Replies: 3 comments
-
HI! |
Beta Was this translation helpful? Give feedback.
-
Thanks @jmervis99 for your answer. |
Beta Was this translation helpful? Give feedback.
-
From my investigation, the problem is related to callbacks. In the same time, when I do something like:
it fails with that error: NightwatchAssertError We are doing a migration from version 0.9 to 2.x. Is it possible to add a failed result to such errors (to fix the failed ones but not break all the runs)? |
Beta Was this translation helpful? Give feedback.
-
Hello, I run many tests with a common tag.
I have a problem with
browser.assert*
. When a test fails, the next one doesn't start. No report about the current (failed one), so hooks don't work. I tried to play withabortOnAssertionFailure: false
(set it in nightwatch.conf.js or in globals.js) - the same result.In my case, I'm just checking the equivalence of 2 values (like
browser.assert.equal(2, 1)
).How to get a failed result on that and not break the run of the next tests?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions