-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress.Commands.add with object argument #18886
Comments
We already have This isn't documented anywhere at the moment - but if someone wanted to open a PR to add it to the docs, that would be very welcome. |
The code for this is done in cypress-io/cypress#20894, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
What would you like?
I want to be able to do this:
Why is this needed?
This way we can maintain a commands.js file that looks like this:
And we can add them all like this:
Other
This will be especially useful for typescript where declaring the function separately from the
Cypress.Commands.add(...)
call is helpful for maintaining correct typing inCypress.Chainable
.The text was updated successfully, but these errors were encountered: