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

Potential gap in documentation for using cucumber with nightwatch #319

Open
ctbaird opened this issue Sep 5, 2024 · 0 comments
Open

Potential gap in documentation for using cucumber with nightwatch #319

ctbaird opened this issue Sep 5, 2024 · 0 comments

Comments

@ctbaird
Copy link

ctbaird commented Sep 5, 2024

The nightwatch example for Cucumber js includes return statements before all browser commands, e.g.
return browser.assert.titleEquals(title); See the example here.

In practice, omitting the return statement before browser.assert (and maybe others) leads to unexpected behavior, like tests passing when assertions fail. However, this does not seem to be specified in the nightwatch documentation for using Cucumber with nighwatch, or for Assertions.

This is confusing because the syntax differs from that in the Cucumber documentation.

Why is the return necessary?

@ctbaird ctbaird changed the title Potential gap in documentation for using cucumber with nighwatch Potential gap in documentation for using cucumber with nightwatch Sep 5, 2024
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

No branches or pull requests

1 participant