Storybook Interactions - a replacement for Jest DOM testing? #16861
-
Hey, I understand the roadmap for 6.5 will include a test runner within StoryBook, as mentioned in this QA. Does the StoryBook team see the Interactions (play functions) as:
Thanks again in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Play functions are generic and you can use them to simulate user interactions, or to run full-blown tests. We already have assertions in the |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I read the discussion but still don't understand. What is the rule of thumb, when should I use jest-tests and when storybook interactive tests? I have some assumptions, but they may be wrong, so correct me if so.
|
Beta Was this translation helpful? Give feedback.
Play functions are generic and you can use them to simulate user interactions, or to run full-blown tests. We already have assertions in the
play
function, and will be stabilizing, documenting, and releasing that in 6.5.