You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are test-suite use cases that can achieved through a combination of abortOnFailure and skip_test_on_fail. abortOnFailure is to determine whether to end the execution of the test case at that node or continue the execution of the test case. The flag does not affect marking a test as a pass or execution of subsequent test cases. Whereas skip_testcase_on_failure will allow us to decide to skip the following test cases in the test suite if a failure occurs in the previous test case.
The bug is created when abortOnFailure is false and skip_testcase_on_fail is set to true. Upon failure, the rest of the test cases are not skipped. This can be reproduced with the example shown below.
Steps to reproduce
Run the test suite shown below with nightwatch.
Sample test
module.exports={'wait for not': ()=>{browser.url('https://www.nightwatchjs.org');browser.waitForElementNotVisible('#header',1000,100,false)//failurebrowser.pause(1);},'wait for': ()=>{browser.url('https://www.nightwatchjs.org');browser.setAttribute('nav.navigation','hidden','true');browser.waitForElementVisible('nav.navigation',1000,100,false);}};
Description of the bug/issue
Context
There are test-suite use cases that can achieved through a combination of
abortOnFailure
andskip_test_on_fail
.abortOnFailure
is to determine whether to end the execution of the test case at that node or continue the execution of the test case. The flag does not affect marking a test as a pass or execution of subsequent test cases. Whereasskip_testcase_on_failure
will allow us to decide to skip the following test cases in the test suite if a failure occurs in the previous test case.The bug is created when
abortOnFailure
is false andskip_testcase_on_fail
is set to true. Upon failure, the rest of the test cases are not skipped. This can be reproduced with the example shown below.Steps to reproduce
Run the test suite shown below with nightwatch.
Sample test
Command to run
Verbose Output
Nightwatch Configuration
No response
Nightwatch.js Version
3.2.1
Node Version
16
Browser
No response
Operating System
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: