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

React Testing Library user events doesn't work on Table #404

Open
Mengeroshi opened this issue May 23, 2024 · 1 comment
Open

React Testing Library user events doesn't work on Table #404

Mengeroshi opened this issue May 23, 2024 · 1 comment

Comments

@Mengeroshi
Copy link

I'm trying to do a simple test filling a text cell with React Testing Library but actions doesn't seem to affect the table.

const textCell = screen.getByText('Text Cell Placeholder');

await user.dblClick(textCell);

const rgCellEditor = await screen.findAllByRole('textbox')[0];
//at this point, the input that edit the texcells on table should be appear but it doesn't

 await user.type(rgCellEditor, '123');
 await user.keyboard('{Enter}');

disableVirtualScrolling = true

This should be enough to fill the text cell but it doesn't work.

Also, I did an E2E test with Playwright with the same instructions and it works.

@webloopbox
Copy link
Contributor

Hi @Mengeroshi, could you please provide a reproduction?

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

2 participants