I have a table that shows the results of a query. I check the table contains result using this:
cy.get("table", {timeout: 60000}).find("tr[data-index]").should("have.length.gt", 1);
But since I have different data sources, I want to check for both cases at the same time: the case I get some results and the case I get 0 results. In the latter, I would check for the presence of a message "No results found". How can I do this "double" assertion?