3 ms·
I am not following how you can use Storybook for testing? I think it's mostly a dummy renderer of your components? I don't see any easy way to put a component i
by wdb 6y ago
I am not following how you can use Storybook for testing? I think it's mostly a dummy renderer of your components? I don't see any easy way to put a component in a specific interactive state forcing code in the component to support this.
Would someone run the Storybook pages through something like Cypress?
- Dylanlacey 6y agoStorybook 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...