Skip to content
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

component triggered by storybook "play" is missing in the captured image #725

Open
Gfast2 opened this issue Apr 18, 2023 · 1 comment
Open

Comments

@Gfast2
Copy link

Gfast2 commented Apr 18, 2023

Hi storycap:

Our team are leveraging storycap to do the visual regression test. We've discovered the ant design notification won't be captured on the screen.

Here is the toy project to reproduce the symptom: ant_design_notification_storybook_storycap_visual_regression_test

In the project above we've using storybook play to trigger the notification. We've tried storycap click as well in between, which won't capture the notification neither.

Could any one give this a check by chance? Thanks. 😺

@MoritzWeber0
Copy link

My observation is that storycap doesn't wait for the play function to finished and instead takes the screenshot immediately.

Therefore, it might work to just introduce a delay:

parameters: {
 screenshot: {
    delay: 1000,
  },
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants