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,