# Storybook Addon Interactions Storybook Addon Interactions enables visual debugging of interactions and tests in [Storybook](https://storybook.js.org). ![Screenshot](https://user-images.githubusercontent.com/321738/135628189-3d101cba-50bc-49dc-bba0-776586fedaf3.png) ## Installation Install this addon by adding the `@storybook/addon-interactions` dependency: ```sh yarn add -D @storybook/addon-interactions @storybook/jest @storybook/testing-library ``` within `.storybook/main.js`: ```js module.exports = { addons: ['@storybook/addon-interactions'], }; ``` Note that `@storybook/addon-interactions` must be listed **after** `@storybook/addon-actions` or `@storybook/addon-essentials`. ## Experimental step debugging Step debugging features are experimental and disabled by default. To enable them: ```js // main.js module.exports = { features: { interactionsDebugger: true, }, }; ``` ## Usage Interactions relies on "instrumented" versions of Jest and Testing Library, that you import from `@storybook/jest` and `@storybook/testing-library` instead of their original package. You can then use these libraries in your `play` function. ```js import { Button } from './Button'; import { expect } from '@storybook/jest'; import { within, userEvent } from '@storybook/testing-library'; export default { title: 'Button', component: Button, argTypes: { onClick: { action: true }, }, }; const Template = (args) =>