Replies: 1 comment 6 replies
-
Interesting! Yeah, it should work normally. What errors do you get? Is the second test flaky? What is By the way, adding |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone
I'm trying out Vitest browser mode w/ Playwright as the provider and I'm running into some weird behaviour (caused or not by my ignorance).
I'm testing a video player and I created a suite of tests w/ describe.
I then created a few tests but they were very flaky. Sometimes an element would no be located, sometimes it would.
Could only resolve through retries. Using
render
fromvitest-browser-react'
.So something like this, for example:
These would start flaking constantly. I couldn't really understand why.
The window the pops up from playwright is not really helpful because it only shows me the result of the last test that was run. I can't navigate to each test individually or re-run only one.
I then tried to put all of these assertions and interactions under 1 test and the flakiness disappeared.
Am I doing something wrong? Are we supposed to write browser tests differently?
This seems like a simple thing but I can't get my head around what I was doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions