Skip to content

Using cypress with uniforms... #1050

Answered by radekmie
mdesousa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mdesousa! The ids are generated in a stable way, but I wouldn't recommend relying on them for tests. You can do two things:

  1. Provide your own ids or any other prop like data-cy and use them in tests.
  2. Rely on names instead. These are not randomized at all and have a business meaning.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by radekmie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants