You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And Cypress doesn't warn that you are trying to add a command that is already a command in Cypress. I'm not exactly sure what the behavior is - does it ignore the add or does it 'overwrite' the original command.
Why is this needed?
If there are conflicting names added, it would be unclear which takes precedence. We should error in this case and instruct the user that they need to use overwrite instead of add, which is for commands that don't exist at all.
Cypress.Commands.overwrite('get', ...)
Other
No response
The text was updated successfully, but these errors were encountered:
What would you like?
You could write:
And Cypress doesn't warn that you are trying to add a command that is already a command in Cypress. I'm not exactly sure what the behavior is - does it ignore the add or does it 'overwrite' the original command.
Why is this needed?
If there are conflicting names added, it would be unclear which takes precedence. We should error in this case and instruct the user that they need to use
overwrite
instead ofadd
, which is for commands that don't exist at all.Other
No response
The text was updated successfully, but these errors were encountered: