Skip to content

Commit

Permalink
Merge branch 'develop-postgres' of https://github.com/PalisadoesFound…
Browse files Browse the repository at this point in the history
…ation/talawa-admin into workflow
  • Loading branch information
im-vedant committed Dec 22, 2024
2 parents cea12f1 + 139e985 commit 70fc259
Show file tree
Hide file tree
Showing 25 changed files with 361 additions and 382 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,27 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { checkInQueryMock } from './mocks';
import { StaticMockLink } from 'utils/StaticMockLink';

/**
* This file contains unit tests for the CheckInWrapper component.
*
* The tests cover:
* - Rendering and behavior of the modal component.
* - Functionality of the button to open and close the modal.
* - Integration with mocked GraphQL queries for testing Apollo Client.
*
* Purpose:
* These tests ensure that the CheckInWrapper component behaves as expected
* when opening and closing modals, and correctly integrates with its dependencies.
*/

const link = new StaticMockLink(checkInQueryMock, true);

describe('Testing CheckIn Wrapper', () => {
const props = {
eventId: 'event123',
};

test('The button to open and close the modal should work properly', async () => {
it('The button to open and close the modal should work properly', async () => {
render(
<MockedProvider addTypename={false} link={link}>
<BrowserRouter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ describe('Testing OrganizationScreen', () => {
const openButton = screen.getByTestId('openMenu');
fireEvent.click(openButton);

// Check for expand class after opening
expect(screen.getByTestId('mainpageright')).toHaveClass(styles.contract);
});

Expand Down
266 changes: 0 additions & 266 deletions src/screens/EventVolunteers/EventVolunteers.module.css

This file was deleted.

Loading

0 comments on commit 70fc259

Please sign in to comment.