Skip to content

Commit

Permalink
Merge pull request #17729 from ch3coo2ca/fix-missing-await
Browse files Browse the repository at this point in the history
fix : add missing await for an async function
  • Loading branch information
shilman committed Apr 1, 2022
1 parent 088b7df commit 4b2662d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Template = (args) => <MyComponent {...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({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Template: ComponentStory<typeof MyComponent> = (args) => <MyComponent {...

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({});
Expand Down

0 comments on commit 4b2662d

Please sign in to comment.