Locate strategy was not reset when test suite retried #1394
Closed
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