fix: fix Pages Storybook tests (#2305)
* fix: fix Companies pages tests * fix: fix People pages tests * fix: fix Opportunities page tests
This commit is contained in:
@ -1,5 +1,187 @@
|
||||
export const mockedObjectMetadataItems = {
|
||||
edges: [
|
||||
{
|
||||
node: {
|
||||
id: 'b25eb5e6-9fdc-4df2-a039-40ccea4c8032',
|
||||
dataSourceId: '',
|
||||
nameSingular: 'viewV2',
|
||||
namePlural: 'viewsV2',
|
||||
labelSingular: 'View',
|
||||
labelPlural: 'Views',
|
||||
description: '(System) Views',
|
||||
icon: 'IconLayoutCollage',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
fields: {
|
||||
edges: [
|
||||
{
|
||||
node: {
|
||||
id: '5db475e7-8208-402d-97a1-62c9ce344dd4',
|
||||
type: 'text',
|
||||
name: 'objectId',
|
||||
label: 'Object Id',
|
||||
description: 'View target object',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: 'ddc89a56-9add-4110-aa53-4ecdbba36767',
|
||||
type: 'text',
|
||||
name: 'type',
|
||||
label: 'Type',
|
||||
description: 'View type',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: '35fa806b-5d9d-446d-bd0e-1a6874b871ee',
|
||||
type: 'text',
|
||||
name: 'name',
|
||||
label: 'Name',
|
||||
description: 'View name',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
],
|
||||
pageInfo: {
|
||||
hasNextPage: false,
|
||||
hasPreviousPage: false,
|
||||
startCursor: null,
|
||||
endCursor: null,
|
||||
},
|
||||
totalCount: 3,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: 'c419540f-ff6e-47bf-9d87-3aa366afd8e4',
|
||||
dataSourceId: '',
|
||||
nameSingular: 'viewFieldV2',
|
||||
namePlural: 'viewFieldsV2',
|
||||
labelSingular: 'View Field',
|
||||
labelPlural: 'View Fields',
|
||||
description: '(System) View Fields',
|
||||
icon: 'IconColumns3',
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
fields: {
|
||||
edges: [
|
||||
{
|
||||
node: {
|
||||
id: '1d718fcf-5a17-4694-91a4-4d3968a51aa4',
|
||||
type: 'text',
|
||||
name: 'viewId',
|
||||
label: 'View Id',
|
||||
description: 'View Field related view',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: '8ead2e86-7b60-4a47-9b4f-ad008e744d52',
|
||||
type: 'number',
|
||||
name: 'position',
|
||||
label: 'Position',
|
||||
description: 'View Field position',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: '4d77c2dd-2b04-4989-b11e-cb0e386d1b4d',
|
||||
type: 'text',
|
||||
name: 'fieldId',
|
||||
label: 'Field Id',
|
||||
description: 'View Field target field',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: '0f5ab566-9fc4-44b7-85c5-1e05db9f6b49',
|
||||
type: 'boolean',
|
||||
name: 'isVisible',
|
||||
label: 'Visible',
|
||||
description: 'View Field visibility',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: '21268ece-7002-4b04-a442-f25278f8ca13',
|
||||
type: 'number',
|
||||
name: 'size',
|
||||
label: 'Size',
|
||||
description: 'View Field size',
|
||||
icon: null,
|
||||
placeholder: null,
|
||||
isCustom: false,
|
||||
isActive: true,
|
||||
isNullable: false,
|
||||
createdAt: '',
|
||||
updatedAt: '',
|
||||
},
|
||||
},
|
||||
],
|
||||
pageInfo: {
|
||||
hasNextPage: false,
|
||||
hasPreviousPage: false,
|
||||
startCursor: null,
|
||||
endCursor: null,
|
||||
},
|
||||
totalCount: 5,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
node: {
|
||||
id: 'a3195559-cc20-4749-9565-572a2f506581',
|
||||
@ -175,5 +357,5 @@ export const mockedObjectMetadataItems = {
|
||||
startCursor: null,
|
||||
endCursor: null,
|
||||
},
|
||||
totalCount: 2,
|
||||
totalCount: 4,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user