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

Create Cypress.Commands.overwrite API #471

Closed
brian-mann opened this issue Mar 21, 2017 · 2 comments
Closed

Create Cypress.Commands.overwrite API #471

brian-mann opened this issue Mar 21, 2017 · 2 comments
Assignees
Labels
type: feature New feature that does not currently exist
Milestone

Comments

@brian-mann
Copy link
Member

Instead of obliterating existing commands, there should be an easy way to overwrite existing ones in order to modify their logic.

Something like this...

Cypress.Commands.overwrite("visit", function(orig, url, options){
  // modify url or options here...
  return orig(url, options)
})
@brian-mann brian-mann added the type: feature New feature that does not currently exist label Mar 21, 2017
@brian-mann brian-mann self-assigned this Mar 21, 2017
@jennifer-shehane
Copy link
Member

The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released.

@brian-mann
Copy link
Member Author

Fixed in 0.20.0

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature New feature that does not currently exist
Projects
None yet
Development

No branches or pull requests

2 participants