Interaction testing router events #147
-
WIth storybook you can use the interactions addon to test events (like onCLick) that are sent to the actions panel by setting argTypes as set out in the actions addon docs. If the onCLick event is set via an arg called onclick then you can test that it gets called by doing something like (if you're clicking an Button that contains the text
Given that this addon sends Link clicks (for example) to the actions panel, is there a way to check that those events are called? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This question is probably best asked over on the storybook side. I'm unfortunately unfamiliar with storybook actions. In addition, storybook is currently baking in nextjs framework support themselves so this would be good feedback to provide them. |
Beta Was this translation helpful? Give feedback.
This question is probably best asked over on the storybook side. I'm unfortunately unfamiliar with storybook actions. In addition, storybook is currently baking in nextjs framework support themselves so this would be good feedback to provide them.