Testing
Storybook play function
Execute an interaction sequence after the story renders in a compatible environment.
Formal Syntax & Structure
react syntaxreact
play: async ({canvas, userEvent}) => {}Working Example
Example Snippetreact
await userEvent.click(canvas.getByRole("button"))