-
Notifications
You must be signed in to change notification settings - Fork 68
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 fixture hangs on teardown with pytest-flask #187
Comments
Short investigation: Its hanging here: I was not able to find out the root cause. Since this is the first bug report related to this, I'll mark it as p3-collecting-feedback. |
I'm running into a similar problem, not using Here's what is happening (sometimes, consistently right now, but seems to stop happening in some scenarios which i cannot yet identify).
Step #3 (I have a uvicorn server running here, still trying to determine if that is part of the problem):
Here's step #4:
And the stack trace on #5:
Not sure if this is helpful, but wanted to dump this here in case anyone else is running into a similar problem. |
When using playwright-pytest in conjunction with pytest-flask the
playwright
fixture can hang on teardown.See markhobson/playwright-pytest-bug for a reproducible example.
Notice the two tests and their fixtures:
Running these tests results in the following output:
It then hangs. After CTRL+C it terminates with:
The order of tests and fixtures appears significant. Injecting both fixtures into both tests is fine, as is injecting just
page
into both tests.As an interaction between pytest-flask and playwright-pytest it's hard to pinpoint in which project the problem lies, but as it's the teardown of the
playwright
fixture that is hanging, I've raised this issue here.The text was updated successfully, but these errors were encountered: