Skip to content

Commit f345556

Browse files
committed
Revert "Feat : Write Unittests for src/components/UserPortal/OrganizationCard/OrganizationCard.tsx (PalisadoesFoundation#2393)"
This reverts commit becd2d1.
1 parent 31027a7 commit f345556

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

src/components/UserPortal/OrganizationCard/OrganizationCard.test.tsx

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import React from 'react';
2-
import { act } from '@testing-library/react';
1+
import React, { act } from 'react';
32
import { fireEvent, render, screen } from '@testing-library/react';
43
import { MockedProvider } from '@apollo/react-testing';
54
import { I18nextProvider } from 'react-i18next';
@@ -226,38 +225,6 @@ describe('Testing OrganizationCard Component [User Portal]', () => {
226225
await wait();
227226
});
228227

229-
test('Visit organization', async () => {
230-
const cardProps = {
231-
...props,
232-
id: '3',
233-
image: 'organizationImage',
234-
userRegistrationRequired: true,
235-
membershipRequestStatus: 'accepted',
236-
};
237-
238-
render(
239-
<MockedProvider addTypename={false} link={link}>
240-
<BrowserRouter>
241-
<Provider store={store}>
242-
<I18nextProvider i18n={i18nForTest}>
243-
<OrganizationCard {...cardProps} />
244-
</I18nextProvider>
245-
</Provider>
246-
</BrowserRouter>
247-
</MockedProvider>,
248-
);
249-
250-
await wait();
251-
252-
expect(screen.getByTestId('manageBtn')).toBeInTheDocument();
253-
254-
fireEvent.click(screen.getByTestId('manageBtn'));
255-
256-
await wait();
257-
258-
expect(window.location.pathname).toBe(`/user/organization/${cardProps.id}`);
259-
});
260-
261228
test('Send membership request', async () => {
262229
props = {
263230
...props,

0 commit comments

Comments
 (0)