From a2ea5efe25d75e68b4ca9b3edbcd847fe0e749a5 Mon Sep 17 00:00:00 2001 From: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com> Date: Fri, 9 Sep 2022 05:43:08 -0500 Subject: [PATCH] test: Fix act errors in LanguagePicker test (#21395) --- .../src/views/components/LanguagePicker.test.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/superset-frontend/src/views/components/LanguagePicker.test.tsx b/superset-frontend/src/views/components/LanguagePicker.test.tsx index 230c89d18b..a427c4e91a 100644 --- a/superset-frontend/src/views/components/LanguagePicker.test.tsx +++ b/superset-frontend/src/views/components/LanguagePicker.test.tsx @@ -38,22 +38,23 @@ const mockedProps = { }, }; -test('should render', () => { +test('should render', async () => { const { container } = render(
, ); + expect(await screen.findByRole('button')).toBeInTheDocument(); expect(container).toBeInTheDocument(); }); -test('should render the language picker', () => { +test('should render the language picker', async () => { render( , ); - expect(screen.getByLabelText('Languages')).toBeInTheDocument(); + expect(await screen.findByLabelText('Languages')).toBeInTheDocument(); }); test('should render the items', async () => {