From 6f47f26ee5387ad84cb57550473a6dd754b2ef0e Mon Sep 17 00:00:00 2001 From: Aryan Shah <149894557+ARYANSHAH1567@users.noreply.github.com> Date: Sat, 19 Oct 2024 02:30:28 +0530 Subject: [PATCH] Update LeftDrawerOrg.test.tsx --- src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 () => {