Sagiv ben giat

Results 54 comments of Sagiv ben giat

What are the alternatives for focus/hover/click?

There are a lot of issues with the current implementation of hover/click/focus/waitFor inconsistent behavior, every test run yields different results when hover/focus are involved. I tried to solve this but...

@Quramy how do you suggest handling trusted events with react-testing-library? AFAIK it doesn't support them like puppeteer does. I mean, if i have a button with a style selector of...

I think its because you are not overriding the same key. In global you set `viewports` but locally you set `viewport`. I guess `viewports` has precedence over `viewport`

Came here to suggests `useElementResize` (using `ResizeObserver` under the hood), and saw this. We may do something like this: ``` const useElementResize = ref => { const [rect, setRect] =...

@ivanzamarro I agree. In our case, no matter what type of export we have, we can't make it work (after a migration from v6 to v7). worked fine on v6,...

> @sag1v In our case, we have decided to stick with version 6 for the same problem, even having to do some hacks in the rendering of component props, but...

@ivanzamarro See[ my comment here](https://github.com/storybookjs/storybook/issues/18137#issuecomment-1559023906). I think i found the issue or at least a part of it and a possible way to workaround it.

We also have issues with this (using MUI)! :(