Number of posts: 65

When Can the Test Submit a Form?

In this blog post we continue exploring flaky tests and how to fix them. We will look at the situation when a page submits a form and then continues to interact with the page, which causes a problem. Tip: you can find all existing similar posts under the tag Flake [https://cypress.io/blog/tag/flake…

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 "Offl…

Read More

Debug a Flaky Visual Regression Test

In our Cypress RealWorld App [https://github.com/cypress-io/cypress-realworld-app] we are using visual regression testing [https://on.cypress.io/visual-testing] to catch unintended style and layout changes. We are using the Percy.io [https://percy.io/] service, and you can see the screenshots at ht…

Read More

When Can The Test Navigate?

In this blog post I will show a test that appears simple, yet acts in surprisingly annoying and frustrating ways. We will slightly change the test to make it reliable and flake-free.…

Read More

Sorting the Table

This recipe shows how to verify that an Ag-Grid table is sorted correctly. The source code can be found in the cypress-example-recipes repository under the "Testing the DOM" list.…

Read More