How can I make cypress recognize the options of a dropdown?

Hello, I'm trying to do an automated test with cypress but i have a problem with the dropdown, because each time i run the test the ids of the dropdown choices change and the test failed.

I think this problem it is because the options in a dropdown came from an expression rule or a constant, and for that reason the html code don't pre-charge the options.

And i just want to know if someone here has the same problem.

Thanks!!!

  Discussion posts and replies are publicly visible