Skip to content

Can we please overwrite query commands #25078

@bahmutov

Description

@bahmutov

What would you like?

Cypress v12 designated several query commands, and now prevents me from overwriting them. Which broke my plugins bahmutov/cypress-if#58 and bahmutov/cypress-aliases#17
Can we please allow overwriting queries, I promise to use it for good

Cypress.Commands.overwrite('as', ...)

Why is this needed?

I keep track of information or change behavior of several query commands in my plugins

Other

No response

Metadata

Metadata

Assignees

Labels

E2EIssue related to end-to-end testingtype: featureNew feature that does not currently exist

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions