Skip to content

← All questions

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

Asked 19,480 views4 answers

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?

asked by Ade Oyinlola419 ·

4 answers

Know the answer?

Reviewed before it appears. Wrap commands and output in triple backticks and they will render as a code block.

Have a different question? Ask it.

Related