-
Notifications
You must be signed in to change notification settings - Fork 289
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
IDs for testing #514
Comments
I'd be fine w/ a PR for this. Any concerns from your end @pradeepnschrodinger ? |
No concerns, this sounds good. FWIW, we set aria attributes for the rows at |
Hey guys, any progress on this issue? |
@Andrii-A is this something you're working on or is it dormant? |
Well, it was more like a feature request... Sorry for not making it clear. |
Cool, no worries. Sounds like this is dormant, @vcardins |
Hey guys, by investigating the source code I found an undocumented prop that does the job:
then
I hope it helps. @wcjordan Could you update the documentation and maybe close this ticket? |
@pradeepnschrodinger Thanks for the prompt response. How soon should we expect an update? |
Expected Behavior
Each table row has it's own data-id for testing purpose.
Each cell in the row has it's own data-id for testing purpose.
Current Behavior
The table produces pretty complicated layout and it's hard to test it without specific hooks.
Currently I need to do something like
cy.get('[data-attr-id="my-table"] > div > div > div:nth-child(3) > div')
to access table rows with Cypress. To access the cell in the table to check it's value, the path will be twice longer.Possible Solution
To add to each table row something like
data-id="fixed-data-table-row-${idx}"
.To add to each row cell something like
data-id="fixed-data-row-cell-${idx}"
.The text was updated successfully, but these errors were encountered: