This blog post tests an application that fetches new data every 30 seconds, but the test itself runs in milliseconds because it controls the application's clock and stubs the network responses.…
Retry, Rerun, Repeat
> If at first you don't succeed, then dust yourself off and try again. - American R&B singer Aaliyah (1979-2001) The modern Internet is built on retries. Software and hardware failures are normal and…
Introducing cy.intercept - Next Generation Network Stubbing in Cypress 6.0
Today, we're elevating the power and scope of Cypress' network handling capabilities with the introduction of the cy.intercept command in Cypress 6.0.…
Testing an Application in Offline Network Mode
Modern web applications need to continue working when a network is unavailable, or at least show users the current network status. In this blog post, I will show how Cypress can simulate an offline network status during a test. Note: the source code for this blog post can be found in the "Offl…
Experimental Fetch Polyfill
Let's take an application that makes an Ajax call to the browser to load a list of ... fruits. You can find this awesome and healthy application in Cypress Example Recipes [https://github.com/cypress-io/cypress-example-recipes#stubbing-and-spying] under name "Stubbing window.fetch".…