Cypress, a browser-based test runner and dashboard, recently introduced native support for test retries in the Cypress 5.0 release, helping developers avoid intermittent test failures. Other recent Cypress advances include networking stubbing and shadow DOM support.

As explained by Ben Hong, senior developer experience engineer at Cypress,

In the course of an end-to-end (E2E) test run, it is fairly common for tests to fail intermittently due to integration dependencies temporarily going offline, random network failures, race conditions, etc… And just like how you would expect a user to refresh their browser if they got a 404 error, it seems like a waste to fail an entire test run due to a random outage.

#typescript #javascript #web testing environment #unit testing #automated testing #web development #architecture & design #development #news

Cypress 5.x Adds Test Retries and Shadow DOM Support
1.55 GEEK