nightwatch icon indicating copy to clipboard operation
nightwatch copied to clipboard

Fix: skip_testcase_on_fail Does not skip the remaning test case on failure.

Open ac-mmi opened this issue 6 months ago • 1 comments

This pull request addresses issue #3939 with the skip_testcase_on_fail and abortOnFailure functionality in the Nightwatch.js library.

Changes:

  1. 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.
  2. Updated shouldSkipTestCaseOnFail method: Added a check to correctly handle skipping test cases based on the skip_testcase_on_fail flag and the error condition.
  3. 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.

ac-mmi avatar Aug 21 '24 07:08 ac-mmi