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]: Starting local server from Playwright is taking longer testing time #30588
Comments
@Xinran-Ma This is indeed surprising. Unfortunately, we won't be able to help unless you share a repro with us, so that we can run it locally. |
Yeah good idea. Will try to put my code in a public repo then share here. |
I'll close it in the meantime as part of the triage process feel free to re-file if you have a repro which we can run locally, thanks! |
Version
1.42.1
Steps to reproduce
Pre-start local server:
npm start
and wait until server is ready for requestsnpx playwright test
until the test is doneCold-start local server:
npx playwright test
until the test is doneExpected behavior
The time spend on
page.goto(xxx)
remain similar.Actual behavior
The 'cold-start' is taking way longer time to run
page.goto
than the 'pre-start'.Cold-start:
Pre-start:
Additional context
The only solution we found so far is to increase
PlaywrightTestConfig -> timeout
from 30s to 60s to avoid single test reach out 30s time out.Here's our current Playwright configuration:
Environment
The text was updated successfully, but these errors were encountered: