Cypress v15.18.0: Enhanced Testing Capabilities
Release Type: Minor | Date: 2026-06-23 | Category: Test Automation
TL;DR
cy.intercept()now supports more complex URL matching.cy.screenshot()offers new options for targeted element captures.- Stability fixes for
cy.origin()and performance boosts for the test runner.
Key Changes
For full details, refer to the official changelog.
Features:
cy.intercept()Enhancements: Improved pattern matching for network requests. This allows for more precise control over stubbing and spying on API calls, simplifying complex test scenarios.cy.screenshot()for Specific Elements: A new option enables capturing screenshots of specific DOM elements directly, improving visual regression testing workflows without manual cropping.
Fixes:
cy.origin()Stability: Resolved issues related to cross-origin navigation stability, ensuring more reliable testing of multi-domain applications. This is crucial for applications using different subdomains or external services, as discussed in our Cypress Deep Dive.- Test Runner Performance: Addressed startup time inefficiencies, particularly on Windows environments, leading to faster test execution initiation.
- Error Reporting: Fixed a bug where assertion failures within
cy.each()loops sometimes reported incorrect stack traces, improving debugging clarity.
Impact for QA Teams
These updates streamline test development and improve test reliability. QA engineers can write more precise network mocks and perform targeted visual checks, reducing flakiness and improving debugging efficiency. The stability fixes contribute to more consistent test runs, a key aspect when comparing tools like Cypress vs. Playwright.
