Stories are useful for verifying the known states of a component. But sometimes you need to test how a component changes in response to user interaction.
Luckily, this is straightforward. Point your interaction testing tool at Storybook’s isolated iframe URL for a specific story then execute the test script as usual. Here’s an example using Cypress: