Setting testID for e2e testing
See original GitHub issueHi there, thanks a lot for this great component.
I was wondering if you’re planning to include support for setting testID
’s some time? I need this for my Cypress e2e tests.
Also just in case you weren’t aware, this component seems to work great on web too using React Native Web!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Why you shouldn't use ids in E2E testing | Autify Blog
This article is about the best practices of locating element on E2E automated testing.
Read more >e2e testing using testID and customStyles #197 - GitHub
I'm trying to use React Native Testing Library such that I can find a MenuOption by it's testID, click on that option, and...
Read more >Write E2E tests - Mattermost Developers
Use camelCase when assigning data-testid or element ID. Watch out for potential breaking changes in the snapshot of the unit testing. Run make...
Read more >Playwright for End to End Tests - Rhythm & Binary
Arrange (setup your data); Act (exercise your code); Assert (verify that what you did is what you expected). To run your Playwright tests,...
Read more >What is the data-testid attribute in testing? - Educative.io
data-testid is an attribute used to identify a DOM node for testing purposes. It should be used as a handler to the test...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
hi @markymc , I have updated in the latest version 2.0.0.
@waldenermonteiro try this:
Then (I’m using Cypress):