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
I think that using toBeVisible is correctly when you want get to know element is visible or not for user.
But that method is using getComputedStyle, but my tailwind classes doesn't load to jest test.
So getComputedStyle return default style, but I have invisible or another classes.
I think that using toBeVisible is correctly when you want get to know element is visible or not for user.
But that method is using getComputedStyle, but my tailwind classes doesn't load to jest test.
So getComputedStyle return default style, but I have invisible or another classes.
What should I do for that situation?
I tried using this instruction: https://stackoverflow.com/questions/71010317/react-testing-library-cant-read-styles-using-tailwind-css-classes
But It is not suitable for me. For temporary solution I used toHaveClass('invisible')
The text was updated successfully, but these errors were encountered: