You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I'm currently having an issue with jest + react-select locally and I'm trying to reproduce it on code sandbox to get some help. However, no matter what I try, I can't seem to find a way to select an item from the select input with react-testing-library on code sandbox.
I simply want to click on the input and click on a menu item which works fine locally. However, when I try to click on the input using userEvent.click(screen.getByText("Select...")); I get the following error:
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
Can anyone explain what is going on here and if there's a way to select something in code sandbox? Note I looked for existing sandboxes but every example I found has some error when running the test.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all, I'm currently having an issue with
jest
+react-select
locally and I'm trying to reproduce it on code sandbox to get some help. However, no matter what I try, I can't seem to find a way to select an item from the select input withreact-testing-library
on code sandbox.I simply want to click on the input and click on a menu item which works fine locally. However, when I try to click on the input using
userEvent.click(screen.getByText("Select..."));
I get the following error:Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
Can anyone explain what is going on here and if there's a way to select something in code sandbox? Note I looked for existing sandboxes but every example I found has some error when running the test.
https://codesandbox.io/s/frosty-cache-1gybp?file=/src/App.test.js
Beta Was this translation helpful? Give feedback.
All reactions