This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new a2ea5efe25 test: Fix act errors in LanguagePicker test (#21395)
a2ea5efe25 is described below

commit a2ea5efe25d75e68b4ca9b3edbcd847fe0e749a5
Author: Lyndsi Kay Williams <[email protected]>
AuthorDate: Fri Sep 9 05:43:08 2022 -0500

    test: Fix act errors in LanguagePicker test (#21395)
---
 superset-frontend/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(
     <Menu>
       <LanguagePicker {...mockedProps} />
     </Menu>,
   );
+  expect(await screen.findByRole('button')).toBeInTheDocument();
   expect(container).toBeInTheDocument();
 });
 
-test('should render the language picker', () => {
+test('should render the language picker', async () => {
   render(
     <Menu>
       <LanguagePicker {...mockedProps} />
     </Menu>,
   );
-  expect(screen.getByLabelText('Languages')).toBeInTheDocument();
+  expect(await screen.findByLabelText('Languages')).toBeInTheDocument();
 });
 
 test('should render the items', async () => {

Reply via email to