AI self-healing in Cypress: reliable tests with full visibility
Blog post from Cypress
Cypress introduces AI-driven self-healing testing with cy.prompt, a tool that adapts to changes in application elements, ensuring tests continue to function despite UI updates like renamed buttons or shifted layouts. Unlike other AI testing tools that operate as black boxes, cy.prompt provides full transparency by logging every healed step in the Command Log and offering detailed Console outputs, enabling users to understand how each test element was resolved. It uses cached mappings and AI to resolve selectors, ensuring that tests reflect the original intent without breaking due to minor UI changes. For teams not ready to adopt self-healing in continuous integration, cy.prompt can still be used as a natural language authoring tool, allowing tests to be reviewed and committed manually to a repository. This approach offers flexibility in testing by maintaining clarity and control while allowing teams to adopt self-healing at their own pace, ensuring reliable testing with comprehensive visibility.