Skip to content

← All questions

Inherited 900 Cypress specs: what maps to what, and what happens to custom commands?

Example threads. These questions and answers were written by the SDODS team to document real problems and how to fix them. The people named are illustrative, not real users. Questions asked on this site are marked new.

I have inherited a Cypress suite. Roughly 900 specs, data-cy attributes throughout, about 60 custom commands in cypress/support/commands.js, and a cypress/fixtures folder nobody has audited in two years.

Management has agreed to a migration but not to a rewrite, so I need an order of operations more than I need a philosophy. What does cy.get become, what happens to custom commands, and what do I do with the fixtures and the intercepts?

4 answers

Know the answer?

Wrap commands and output in triple backticks and they will render as a code block.

Checking whether you’re signed in…

Have a different question? Ask it.

Related