From 05fd8986252c921a25f23685713d28fd0ecd671d Mon Sep 17 00:00:00 2001 From: jylee Date: Wed, 16 Mar 2022 21:13:43 +0900 Subject: [PATCH] fix : add missing await for an async function --- .../react/my-component-play-function-composition.js.mdx | 2 +- .../react/my-component-play-function-composition.ts.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/snippets/react/my-component-play-function-composition.js.mdx b/docs/snippets/react/my-component-play-function-composition.js.mdx index 69987e5d2e17..a6eb763cf286 100644 --- a/docs/snippets/react/my-component-play-function-composition.js.mdx +++ b/docs/snippets/react/my-component-play-function-composition.js.mdx @@ -20,7 +20,7 @@ const Template = (args) => ; export const FirstStory = Template.bind({}); FirstStory.play = async () => { - userEvent.type(screen.getByTestId('an-element'), 'example-value'); + await userEvent.type(screen.getByTestId('an-element'), 'example-value'); }; export const SecondStory = Template.bind({}); diff --git a/docs/snippets/react/my-component-play-function-composition.ts.mdx b/docs/snippets/react/my-component-play-function-composition.ts.mdx index 49a23764ec14..963c4333adb2 100644 --- a/docs/snippets/react/my-component-play-function-composition.ts.mdx +++ b/docs/snippets/react/my-component-play-function-composition.ts.mdx @@ -22,7 +22,7 @@ const Template: ComponentStory = (args) => { - userEvent.type(screen.getByTestId('an-element'), 'example-value'); + await userEvent.type(screen.getByTestId('an-element'), 'example-value'); }; export const SecondStory = Template.bind({});