Is there a way to have multiple valid values in should()? #9389
Unanswered
Njaah-0
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that Cypress doesn't like conditional testing and there's good reason for this. But some times multiple values are correct. Here's an example:
This test is to check that invalid PIN value also shows some visual feedback. Problem here is that value of border-color might as well be rgb(255, 0, 0), rgb(255,0,0) or ff0000 and test would fail.
Is there anyway to handle cases like this?
Beta Was this translation helpful? Give feedback.
All reactions