-
Notifications
You must be signed in to change notification settings - Fork 88
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
waitFor leads to timeout with storybook 7 #720
Comments
I have the same issue but with
EDIT: It looks like it is not the stories itself that are the problem. I have a relatively simple story that displays a Paragraph and that timeout. There is a bug somewhere in v4.0.0 which I am trying to have a look at right now (I might not be able to solve it, since I am not familiar with it). |
I can't figure it out sorry, and I don't have time to look at it. Essentially storycap just needs to support Storybook v7. |
Hi!
import { Preview } from "@storybook/react";
import { withScreenshot } from "storycap";
const preview: Preview = {
parameters: {
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
},
decorators: [withScreenshot()], // <--- just added `withScreenshot()` to `decorators`
};
export default preview; |
invoking the withScreenshot worked for me as well. Seems to be marked as deprecated though. storycap now runs on managed mode without timeouts |
this is also work in storybook8. |
When using a
waitFor
statement with storybook 7 storycap will time out withA small reproducer is available here https://github.com/F43nd1r/storycap-storybook7-reproducer
The text was updated successfully, but these errors were encountered: