-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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] Browser context is closing too long #5051
Comments
In essence, it's what this item is about as well :): |
This one is a regression from 1.7. Note that you should never recycle contexts, discard all of them after each test. |
Not seeing this as a regression: v1.7.1
v1.8.0
|
I think the issue is in your test - you don't close the contexts after each test and as a result, closing all the contexts in the end of the suite. This results in a minute of the video that needs to be processed. You should close context after each test. We do that in http://github.com/microsoft/playwright-test, maybe it works for you. |
Context:
Describe the bug
Hi, guys! I’ve added video recording to my tests as described in the documentation. Between tests I want to close all contexts except one, because I need sometimes 2, sometimes 1 context (I use approach 1 context = 1 page, because it’s easier to maintain for my application).
So, the problem is: when I’m closing context after 2-contexts test I see:
It takes 50-60 seconds, so it's too long. I have a lot of such "switches".
I can provide additional logs if you tell me what to do. Could you please help? Maybe I'm doing something wrong.
Thanks in advance!
Code Snippet
Update: here is repo to reproduce: https://github.com/viraxslot/close-context-problem.git
Hope it'll help.
The text was updated successfully, but these errors were encountered: