Skip to content

Commit

Permalink
Update packages/big-design/src/components/Alert/spec.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Chancellor Clark <[email protected]>
  • Loading branch information
bc-alexsaiannyi and chanceaclark authored Nov 16, 2021
1 parent f16eb78 commit 7ab032b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/big-design/src/components/Alert/spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ test('trigger onClose', async () => {
const fn = jest.fn();
render(<Alert onClose={fn} messages={[{ text: 'Success' }]} />);

const button = screen.getByRole('button') as HTMLButtonElement;
const button = await screen.findByRole('button');

fireEvent.click(button);

Expand Down

0 comments on commit 7ab032b

Please sign in to comment.