2 ms·
Storybook lets you permutate the inputs you can give a component, letting you verify the results are correct in a variety of ways. I work for Sauce Labs, so I'
by Dylanlacey 6y ago
Storybook lets you permutate the inputs you can give a component, letting you verify the results are correct in a variety of ways.
I work for Sauce Labs, so I'm most familiar with combining Storybook with Screener (https://screener.io/v2/docs https://screener.io/v2/docs). Our integration lets you provide a set of interactions to take to change a component state, then does sophisticated layout, content, and structure comparisons.
The official docs for testing with Storybook have a range of other ways you can use it to test your components: https://storybook.js.org/docs/react/workflows/testing-with-storybook https://storybook.js.org/docs/react/workflows/testing-with-s...