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
storybook-chrome-screenshot allows in a very nice manner to specificy the device and viewports for the screenshots. Currently, there isn't a way to screenshot a component on multiple devices and resolutions without creating additional stories for each device and resolution(which doesn't help since most probably the component should be tested in React storybook full screen mode and using Chrome device emulator).
One limitation that prevents us from using it to screenshot components across all devices that we support is that there isn't really a way for a story to be screen-shoted across multiple configurations. Eg, given a story like
In the example above StickyButton is a responsive component. We need to support and have different layouts on Mobile, Table and Desktop devices in normal and landscape mode.
It would be really cool to have the same story screenshoted in all 3 configurations by specifying them as an array of options:
In the example above for each component 3 screenshots would be taken according to the specified viewport settings.
The text was updated successfully, but these errors were encountered:
gcazaciuc
changed the title
[Feature proposal] Provide a way o taking screenshots of responsive components
[Feature proposal] Provide a way of taking multiple screenshots of the same component(eg on various devices)
Sep 4, 2017
Hi @gcazaciuc, Thank you for a wonderful proposal !
The proposed function is simple and powerful to test components 👍
I would like to implement it in the next release.
storybook-chrome-screenshot
allows in a very nice manner to specificy the device and viewports for the screenshots. Currently, there isn't a way to screenshot a component on multiple devices and resolutions without creating additional stories for each device and resolution(which doesn't help since most probably the component should be tested in React storybook full screen mode and using Chrome device emulator).One limitation that prevents us from using it to screenshot components across all devices that we support is that there isn't really a way for a story to be screen-shoted across multiple configurations. Eg, given a story like
In the example above
StickyButton
is a responsive component. We need to support and have different layouts on Mobile, Table and Desktop devices in normal and landscape mode.It would be really cool to have the same story screenshoted in all 3 configurations by specifying them as an array of options:
In the example above for each component 3 screenshots would be taken according to the specified viewport settings.
The text was updated successfully, but these errors were encountered: