You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When rendering snapshots for a component, I found that the snapshots were of the loading state of the component, and adding a small delay (10ms) could mean the difference between the snapshot containing the loading or loaded state of the component.
By adding an optional delay?: number parameter to this function, the developer can specify how long such a wait should be before the snapshot is taken.
If this idea is accepted, I'm happy to work on the PR.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
storybook/addons/storyshots/storyshots-core/src/test-bodies.ts
Line 12 in 7064642
When rendering snapshots for a component, I found that the snapshots were of the loading state of the component, and adding a small delay (10ms) could mean the difference between the snapshot containing the loading or loaded state of the component.
By adding an optional
delay?: number
parameter to this function, the developer can specify how long such a wait should be before the snapshot is taken.If this idea is accepted, I'm happy to work on the PR.
Beta Was this translation helpful? Give feedback.
All reactions