Fix more tests (#18287)

Improve mock in front tests
This commit is contained in:
Charles Bochet
2026-02-27 14:06:18 +01:00
committed by GitHub
parent 9667b3f369
commit 86fbf69e95
61 changed files with 35917 additions and 22333 deletions
@@ -15,8 +15,8 @@ import {
ViewType,
ViewVisibility,
} from '~/generated-metadata/graphql';
import { getMockCompanyObjectMetadataItem } from '~/testing/mock-data/companies';
import { mockedUserData } from '~/testing/mock-data/users';
import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
const Wrapper = ({ children }: { children: ReactNode }) =>
@@ -48,7 +48,7 @@ const renderHooks = ({
{
id: 'viewId',
name: 'Test View',
objectMetadataId: getMockCompanyObjectMetadataItem().id,
objectMetadataId: getMockObjectMetadataItemOrThrow('company').id,
type: ViewType.TABLE,
key: null,
isCompact: false,