nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.85k stars 1.34k forks source link

Add null check before rejecting BaseLoader.lastDeferred. #4278

Closed garg3133 closed 1 month ago

garg3133 commented 1 month ago

In certain cases, BaseLoader.lastDeferred is getting set to null in between the test execution (see issue #4265).

Although not sure yet why this is the case, it is anyway a good idea to add a null check before rejecting the BaseLoader.lastDeferred promise, which represents the last command or assertion added to the Nightwatch queue.

github-actions[bot] commented 1 month ago

Status