Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshulKahar2729 committed Sep 25, 2024
1 parent ba85c24 commit 108d31e
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,16 @@ describe('Testing OrganizationCard Component [User Portal]', () => {

// Modal should be shown
expect(screen.getByText('Leaving organization ?')).toBeInTheDocument(); // Adjust this as per your modal content

const closeButton = screen.getByText('Cancel'); // Assuming the modal has a "Close" button, adjust as per your modal content
fireEvent.click(closeButton);

await wait();

// Assert that the modal is no longer in the document
expect(
screen.queryByText('Leaving organization ?'),
).not.toBeInTheDocument();
});

test('Component should be rendered properly if organization Image is not undefined', async () => {
Expand Down

0 comments on commit 108d31e

Please sign in to comment.