diff --git a/docs/rules/await-interactions.md b/docs/rules/await-interactions.md index 0d4563c..95fb7d1 100644 --- a/docs/rules/await-interactions.md +++ b/docs/rules/await-interactions.md @@ -27,7 +27,7 @@ Examples of **correct** code for this rule: ```js import { within, userEvent } from '@storybook/testing-library' -MyStory.play = (context) => { +MyStory.play = async (context) => { const canvas = within(context.canvasElement) // awaited 👍 await userEvent.click(canvas.getByRole('button'))