Skip to content

Locate strategy was not reset when test suite retried #1394

Closed
@Yuyz0112

Description

How did it happened

Configure --suiteRetries and then start the test suites. If the test suite failed and the last command had set locate strategy to recursion, the client's locateStrategy property would not reset to the default/configure locate strategy.
So this may cause the retried test suite keep failing because the first command may not use recursion locate strategy.

How to fix it

When nightwatch retry a test suite, it will reset terminated status first. So I think we can reset locate strategy in resetTerminated.
#1395

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions