From f34555647ffaf6a84ed700a9cfe45ecf356f71a3 Mon Sep 17 00:00:00 2001 From: Divyansh Seth Date: Sat, 2 Nov 2024 14:49:37 +0530 Subject: [PATCH] Revert "Feat : Write Unittests for `src/components/UserPortal/OrganizationCard/OrganizationCard.tsx` (#2393)" This reverts commit becd2d1a51360e1e96834afa25cf759e41aeb9a5. --- .../OrganizationCard.test.tsx | 35 +------------------ 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/src/components/UserPortal/OrganizationCard/OrganizationCard.test.tsx b/src/components/UserPortal/OrganizationCard/OrganizationCard.test.tsx index 3ea0c3230e..ba13fe346d 100644 --- a/src/components/UserPortal/OrganizationCard/OrganizationCard.test.tsx +++ b/src/components/UserPortal/OrganizationCard/OrganizationCard.test.tsx @@ -1,5 +1,4 @@ -import React from 'react'; -import { act } from '@testing-library/react'; +import React, { act } from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; import { MockedProvider } from '@apollo/react-testing'; import { I18nextProvider } from 'react-i18next'; @@ -226,38 +225,6 @@ describe('Testing OrganizationCard Component [User Portal]', () => { await wait(); }); - test('Visit organization', async () => { - const cardProps = { - ...props, - id: '3', - image: 'organizationImage', - userRegistrationRequired: true, - membershipRequestStatus: 'accepted', - }; - - render( - - - - - - - - - , - ); - - await wait(); - - expect(screen.getByTestId('manageBtn')).toBeInTheDocument(); - - fireEvent.click(screen.getByTestId('manageBtn')); - - await wait(); - - expect(window.location.pathname).toBe(`/user/organization/${cardProps.id}`); - }); - test('Send membership request', async () => { props = { ...props,