-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Playwright sometimes report failed test even when there are no failed assertions or no assertions at all #29133
Comments
Can you attach a self contained example that we could run locally or at least a trace file? Can you also try if it reproduces with 1.41? |
Unfortuantely I can't produce an example, it's an internal site. Can you tell me how to create a trace file? |
Please follow our guide. You basically need to set |
I'm having the same issue on 1.41. I randomly encountered it while adding more tests & am I just switching over from cypress to playwright. All of my tests pass without ui mode, but in ui mode some of them randomly report as failed with no visible errors. I'm not sure how to produce an example either, because it's a relatively large private codebase. |
@joshkay if providing a minimal repro is problematic, can you at least share a trace to help us debug this issue? |
Here's an example of a test that randomly reports as Failed. |
Are these two screenshots for the same test suite and it fails under UI mode while passing when run from terminal? |
Yes exactly, my tests are passing 100% of the time in the terminal. However, in UI mode it's completely random which tests are reporting as failed. There are also no visible errors when they report as failed. |
I have a page that has a selection box where users can check which widgets they want to see. When they check one, the page calls my API for the relevant info and displays a widget on screen. The test passes, but sometimes it would say it failed, even when there are no errors in the errors log.
System info
Source code
Screenshot of Playwright test UI: https://prnt.sc/pcwUwwXrNa6e
Steps
Expected
It should pass every time
Actual
Sometimes it fails
The text was updated successfully, but these errors were encountered: