Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage for test-id #7

Open
gaurav5430 opened this issue Jul 13, 2020 · 0 comments
Open

Usage for test-id #7

gaurav5430 opened this issue Jul 13, 2020 · 0 comments

Comments

@gaurav5430
Copy link

Can this library help with generating unique test ids, so that we can use that to target specific elements in tests ?

Currently, this is how it seems to work and some issues:

  • the order of unique ids generated would be the same, every time you reset. I also suppose that this guarantees the same ids and order if the app is run again, or the page is refreshed?
  • It seems that we can get different ids for the same component if the code is executed in a way that the order of loading that component differs ( for example, it would probably be affected by conditional rendering)
  • this only happens at runtime, but is there a way to expose all these generated ids somehow as a map in json, so that the file can then be used in the testing framework.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant