Network

Number of posts: 7

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 expected.…

Read More

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 "Offline" r…

Read More

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 under name "Stubbing window.fetch". ApplicationEvery time you visit an application you get five new fruitsThis application prese…

Read More