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 support for Nightwatch 2.x #390

Merged
merged 2 commits into from
May 2, 2022
Merged

✨ Add support for Nightwatch 2.x #390

merged 2 commits into from
May 2, 2022

Conversation

Robdel12
Copy link
Contributor

What is this?

Update the SDK to support both Nightwatch 1.x and 2.x. The difference is the object that's returned from the execute function. 1.x will return with a nested value object and 2.x does not. I also noticed 2.x no longer returns the result of the function, so I wrapped the function in a promise and resolve that promise in the callback with the execute results.

Bug or feature?

I struggled with what this should be. Is this a bug fix (patch) or is this a new feature since we're now adding support for 2.x?

@Robdel12 Robdel12 added the ✨ enhancement New feature or request label Apr 28, 2022
@Robdel12 Robdel12 requested a review from wwilsman April 28, 2022 22:33
@Robdel12
Copy link
Contributor Author

For some reason the headless arg isn't working with 2.x. That's a problem for tomorrow

This also retains compatibility with Nightwatch 1.x
.github/workflows/test.yml Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@wwilsman wwilsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎮

@Robdel12 Robdel12 merged commit 3338c39 into master May 2, 2022
@Robdel12 Robdel12 deleted the rd/nightwatch-2.x branch May 2, 2022 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants