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

DataGrid more click on checkbox with react-testing-library #1009

Open
jamiek-acl opened this issue Apr 15, 2021 · 0 comments
Open

DataGrid more click on checkbox with react-testing-library #1009

jamiek-acl opened this issue Apr 15, 2021 · 0 comments
Labels

Comments

@jamiek-acl
Copy link
Contributor

I have a DataGrid with renderColumnIndicator and i'd like to write some react-testing-library tests that check off some rows.

Screen Shot 2021-04-15 at 12 26 10 PM

userEvent.click(document.querySelectorAll('[data-pka="cell-a11y"]')[1]); // this did work
userEvent.click(screen.getAllByRole('checkbox')[1]);                     // this did not work
userEvent.click(screen.getByLabelText('Asset 2'));                       // this is the preferred way I think
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant