The application I'm testing has multi-language capability, so I need to be able to test for text that can be one thing or another and either should pass the test.
Although it's a conditional test, I don't want to use if() statements which would mean I then lose retry capability of cypress commands (i.e flaky tests).
For example, how can I check a string that can be one of several languages without repeating the test?
cy.get('div')
.should('contain', 'Hello')
.or('contain', 'Hola')