-
Notifications
You must be signed in to change notification settings - Fork 74
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
Error output if a test fail says "page.evaluate: Browser has been closed" #336
Comments
Having the same issue here. |
I'm also seeing this happen, but only occasionally. I agree it would be great to give as much context as possible here about what failed and why, ideally with a stacktrace back to the original error. At the very least, it should be clear which test failed, which I find isn't always the case. |
I'm having the same issue :/ "storybook": "^7.5.2", |
This happened to me as well. I was using https://vanilla-extract.style/ with Vite, which precompiles .css.ts files to .css in the bundling step. I was getting an error inside vanilla-extract because I was using it incorrectly, but I think because the error was being thrown in the bundler step it made it problematic for storybook to elegantly collect error information. Adding this message in case it helps debugging this issue! |
🚀 Issue was released in |
Describe the bug
Trying out the test-runner on a new storybook setup, but the error when the test-runner encounter a runtime error seems like a bug. It does not tell you which test that failed and why right away. When I first saw it looked like a bug in the test runner.
It can be it is intentional, but there were no issues mentioning "page.evaluate: Browser has been closed" this issue can just be closed :)
To Reproduce
Can be reproduced here
https://github.com/kevinsimper/test-storybook-testrunner
I have added a
throw new Error
in page.jsxWithout the throw error, it works fine
The text was updated successfully, but these errors were encountered: