nightwatch
nightwatch copied to clipboard
Fix: skip_testcase_on_fail Does not skip the remaning test case on failure.
This pull request addresses issue #3939 with the skip_testcase_on_fail and abortOnFailure functionality in the Nightwatch.js library.
Changes:
- Added skip_testcase_on_fail flag initialization: The flag is now initialized in the AsyncTree constructor to properly handle test cases when this setting is enabled.
- Updated shouldSkipTestCaseOnFail method: Added a check to correctly handle skipping test cases based on the skip_testcase_on_fail flag and the error condition.
- Logging enhancements: Added logging to track the status of the skipRemainingTests flag during execution, making debugging easier.
These changes ensure that when skip_testcase_on_fail is set to true, subsequent test cases are skipped upon failure as expected, improving the consistency of test behavior.