Play functions in Chromatic
We just announced Component Story Format 3.0 that brings
play functions to Storybook.
Play functions are scripted interactions that execute after the story has rendered, allowing you test hard-to-reach states in your UI like form validations and hover states.
Here's a quick example of filling out a form. For more see the announcement:
import userEvent from '@testing-library/user-event';