Fix calendar broken tests
This commit is contained in:
@ -2,13 +2,16 @@ import { Meta, StoryObj } from '@storybook/react';
|
||||
|
||||
import { Calendar } from '@/activities/calendar/components/Calendar';
|
||||
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
|
||||
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
|
||||
import { graphqlMocks } from '~/testing/graphqlMocks';
|
||||
|
||||
const meta: Meta<typeof Calendar> = {
|
||||
title: 'Modules/Activities/Calendar/Calendar',
|
||||
component: Calendar,
|
||||
decorators: [ComponentDecorator],
|
||||
decorators: [ComponentDecorator, SnackBarDecorator],
|
||||
parameters: {
|
||||
container: { width: 728 },
|
||||
msw: graphqlMocks,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@ -19,6 +19,23 @@ export const getObjectMetadataItemsMock = () => {
|
||||
updatedAt: '2023-11-30T11:13:15.206Z',
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
__typename: 'object',
|
||||
id: '20202020-ddee-40de-9c9b-5f82a3503361',
|
||||
dataSourceId: '20202020-7f63-47a9-b1b3-6c7290ca9fb1',
|
||||
nameSingular: 'calendarEvent',
|
||||
namePlural: 'calendarEvents',
|
||||
labelSingular: 'Calendar Event',
|
||||
labelPlural: 'Calendar Events',
|
||||
description: 'A calendar event',
|
||||
icon: 'IconCalendarEvent',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isSystem: true,
|
||||
createdAt: '2023-11-30T11:13:15.206Z',
|
||||
updatedAt: '2023-11-30T11:13:15.206Z',
|
||||
fields: [],
|
||||
},
|
||||
{
|
||||
__typename: 'object',
|
||||
id: '20202020-d8d0-4c2d-a370-5499b2181d02',
|
||||
|
||||
Reference in New Issue
Block a user