Skip to content

Commit

Permalink
EventAgendaItems migrated from jest to vitest. (#2975)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaan-aly246 authored Jan 3, 2025
1 parent 0edc21b commit 6e3435b
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { store } from 'state/store';
import { StaticMockLink } from 'utils/StaticMockLink';
import EventAgendaItems from './EventAgendaItems';
import { vi, describe, expect, it, beforeEach } from 'vitest';

import { vi } from 'vitest';
import {
MOCKS,
MOCKS_ERROR_QUERY,
Expand Down Expand Up @@ -97,9 +96,6 @@ describe('Testing Agenda Items Components', () => {
</Provider>
</MockedProvider>,
);

await wait();

await waitFor(() => {
expect(getByText(translations.createAgendaItem)).toBeInTheDocument();
});
Expand All @@ -117,9 +113,6 @@ describe('Testing Agenda Items Components', () => {
</Provider>
</MockedProvider>,
);

await wait();

await waitFor(() => {
expect(
queryByText(translations.createAgendaItem),
Expand All @@ -142,8 +135,6 @@ describe('Testing Agenda Items Components', () => {
</MockedProvider>,
);

await wait();

await waitFor(() => {
expect(screen.getByTestId('createAgendaItemBtn')).toBeInTheDocument();
});
Expand All @@ -160,6 +151,7 @@ describe('Testing Agenda Items Components', () => {
screen.queryByTestId('createAgendaItemModalCloseBtn'),
);
});

it('creates new agenda item', async () => {
render(
<MockedProvider addTypename={false} link={link}>
Expand Down

0 comments on commit 6e3435b

Please sign in to comment.