From 7ab032b17e62b1a4658a22d9e2ef1d02b3c6b173 Mon Sep 17 00:00:00 2001 From: Alex Saiannyi <67792608+bc-alexsaiannyi@users.noreply.github.com> Date: Tue, 16 Nov 2021 10:45:54 +0200 Subject: [PATCH] Update packages/big-design/src/components/Alert/spec.tsx Co-authored-by: Chancellor Clark --- packages/big-design/src/components/Alert/spec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/big-design/src/components/Alert/spec.tsx b/packages/big-design/src/components/Alert/spec.tsx index d00d6268e..2bce4a0ae 100644 --- a/packages/big-design/src/components/Alert/spec.tsx +++ b/packages/big-design/src/components/Alert/spec.tsx @@ -93,7 +93,7 @@ test('trigger onClose', async () => { const fn = jest.fn(); render(); - const button = screen.getByRole('button') as HTMLButtonElement; + const button = await screen.findByRole('button'); fireEvent.click(button);