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.
In certain cases,
BaseLoader.lastDeferred
is getting set tonull
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.