diff --git a/docs/essentials/interactions.md b/docs/essentials/interactions.md index a8c212b15c12..6baff2197774 100644 --- a/docs/essentials/interactions.md +++ b/docs/essentials/interactions.md @@ -82,3 +82,9 @@ The above example uses the `canvasElement` to scope your element queries to the While you can refer to the [Testing Library documentation](https://testing-library.com/docs/) for details on how to use it, there's an important detail that's different when using the Storybook wrapper: **method invocations must be `await`-ed**. It allows you to step back and forth through your interactions using the debugger. Any `args` that have been marked as an Action, either using the [argTypes annotation](./actions.md#action-argtype-annotation) or the [argTypesRegex](./actions.md#automatically-matching-args), will be automatically converted to a [Jest mock function](https://jestjs.io/docs/mock-function-api) (spy). This allows you to make assertions about calls to these functions. + +