-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fixture timeout exceeded with Playwright test runner #861
Comments
Hey @becem-gharbi! 👋 I'm here to help you with your bug and questions. I can assist you in solving bugs, answering questions, and even becoming a contributor. To resolve the timeout issue when running a fixture test with Playwright, you can increase the timeout for the setup phase by configuring the
By increasing the
|
👍 I don't get why the build step is ran for every test case. In a bigger app it takes 30 seconds for each test to finish setup. |
I agree. As a solution, I suggest launching your Nuxt app with Playwright. https://playwright.dev/docs/test-webserver#configuring-a-web-server |
Does not seem to work, I used this as a workaround for now #314 (comment) |
Environment
Reproduction
https://stackblitz.com/edit/github-jpkifv?file=playwright.config.ts
Describe the bug
Hi,
When running a fixture test with Playwright, the setup performing the build step takes too long which leads to a timeout error.
Additional context
The reason seems to be related to the
setupTimeout
option not passed as described in Playwright's docs https://playwright.dev/docs/next/test-fixtures#fixture-timeout.test-utils/src/playwright.ts
Line 40 in 66b23ae
Logs
Fixture "_nuxtHooks" timeout of 30000ms exceeded during setup.
The text was updated successfully, but these errors were encountered: