diff --git a/src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx b/src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx index 6e01bfc9e6..3e425a5c6c 100644 --- a/src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx +++ b/src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx @@ -1,5 +1,5 @@ import React, { act } from 'react'; -import { fireEvent, render, screen, waitFor } from '@testing-library/react'; +import { fireEvent, render, screen } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import 'jest-localstorage-mock'; import { I18nextProvider } from 'react-i18next'; @@ -304,9 +304,8 @@ describe('Testing LeftDrawerOrg component for SUPERADMIN', () => { , ); - await waitFor(() => - expect(screen.getByTestId(/orgBtn/i)).toBeInTheDocument(), - ); + await wait(); + expect(screen.getByTestId(/orgBtn/i)).toBeInTheDocument(); }); test('Testing Menu Buttons', async () => {