News for hackers. Stuff that matters.
Re:Storybook 6.0 your new favourite tool for front-end devel... by wdb on Thursday August 13, 2020 @01:17PM (#24145707)
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?

Re:Storybook 6.0 your new favourite tool for front-end devel... by Dylanlacey on Sunday August 16, 2020 @09:16PM (#24182861)
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). 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-s...