Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add null check before rejecting BaseLoader.lastDeferred. #4278

Merged
merged 1 commit into from
Oct 22, 2024

Conversation

garg3133
Copy link
Member

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.

Copy link

Status

  • ❌ No modified files found in the types directory.
    Please make sure to include types for any changes you have made. Thank you!.

@garg3133 garg3133 merged commit 1e37c94 into nightwatchjs:main Oct 22, 2024
16 of 17 checks passed
@garg3133 garg3133 deleted the baseloader.lastDeferred branch October 22, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant