Skip to content

Commit

Permalink
Update LeftDrawerOrg.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ARYANSHAH1567 authored Oct 18, 2024
1 parent b97ec03 commit 6f47f26
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/LeftDrawerOrg/LeftDrawerOrg.test.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -304,9 +304,8 @@ describe('Testing LeftDrawerOrg component for SUPERADMIN', () => {
</BrowserRouter>
</MockedProvider>,
);
await waitFor(() =>
expect(screen.getByTestId(/orgBtn/i)).toBeInTheDocument(),
);
await wait();
expect(screen.getByTestId(/orgBtn/i)).toBeInTheDocument();
});

test('Testing Menu Buttons', async () => {
Expand Down

0 comments on commit 6f47f26

Please sign in to comment.