Does Cypress work well with tables? I have a table where my newly added element is on the second page of the table. I would like to search the table if the element is not on the first page so that Cypress will click on page 2. Can I do it or do I have to use Javascript or something else?


Solution 1:

This is called Conditional Testing, and is generally a bad idea for e2e tests.

Here's the guide on the Cypress Docs about Conditional Testing