Some tests started failing from vitest 4.0.10 onward in browser mode #9067
-
|
Hi, Since I upgraded to vitest@4.0.10 some tests from my suite started failing. I am using browser mode with vitest-browser-react. The tests are failing only in headless mode. If I turn headless mode to false, the tests are passing. When headless mode is turned on I get logs like From here on, I am not sure how I can dig more to see what the problem is. Does anybody has any pointers on how to proceed with investigating what is wrong? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
|
Oh, it might be because of this: #9018 |
Beta Was this translation helpful? Give feedback.
-
|
@sheremet-va Thanks for the prompt response. Was that fix released? I still see the issue on 4.0.12. I also saved a screenshot and the iframe still seems that it crops the view (if I understand the issue from #9018). My view contains more fields than what you can see in the image.
|
Beta Was this translation helpful? Give feedback.
-
|
I did some more digging. I have a few types of failures. First type it is the one that I described in the discussion description. This still fails in 4.0.12 (started failing with 4.0.10). I will try to replicate it in a simpler manner. Another type is |
Beta Was this translation helpful? Give feedback.

Hm, you can change the viewport to be bigger so it doesn't treat it as a mobile device (which I think is a correct behavior if you look at the size of it)