Skip to content

The open alternative to Salesforce, designed for AI.

Fix sdk tests (#19172)

Baptiste Devessier261214543693
diff --git a/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts b/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts
index fae5ba28c6b..dc18573db72 100644
--- a/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts
+++ b/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/expected-manifest.ts
@@ -598,6 +598,17 @@ export const EXPECTED_MANIFEST: Manifest = {
relationType: RelationType.MANY_TO_ONE,
},
},
+ // Field on standard company object
+ {
+ defaultValue: false,
+ description: 'Whether the company can receive postcards',
+ icon: 'IconMailbox',
+ label: 'Can Receive Postcards',
+ name: 'canReceivePostcards',
+ objectUniversalIdentifier: '20202020-b374-4779-a561-80086cb2e17f',
+ type: FieldType.BOOLEAN,
+ universalIdentifier: 'f922fdb8-10a9-4f11-a1d0-992a779f6dff',
+ },
],
objects: [
{
@@ -1516,7 +1527,7 @@ export const EXPECTED_MANIFEST: Manifest = {
isVisible: true,
position: 0,
size: 200,
- universalIdentifier: 'bf1a2b3c-0004-4a7b-8c9d-0e1f2a3b4c5d',
+ universalIdentifier: 'fd959c6f-3465-4a3a-b7ad-3f4004fffc9a',
},
],
icon: 'IconLink',
@@ -1562,6 +1573,14 @@ export const EXPECTED_MANIFEST: Manifest = {
size: 200,
universalIdentifier: 'bf1a2b3c-0003-4a7b-8c9d-0e1f2a3b4c5d',
},
+ {
+ fieldMetadataUniversalIdentifier:
+ 'd3a2b3c4-5e6f-4a7b-8c9d-0e1f2a3b4c5d',
+ isVisible: true,
+ position: 1,
+ size: 150,
+ universalIdentifier: 'bf1a2b3c-0004-4a7b-8c9d-0e1f2a3b4c5d',
+ },
],
icon: 'IconUser',
name: 'All Recipients',
diff --git a/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/tests/manifest.tests.ts b/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/tests/manifest.tests.ts
index 7cdb7d97918..911aeb473d5 100644
--- a/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/tests/manifest.tests.ts
+++ b/packages/twenty-sdk/src/cli/__tests__/apps/postcard-app/__integration__/app-dev/tests/manifest.tests.ts
@@ -23,7 +23,7 @@ export const defineManifestTests = (appPath: string): void => {
expect(manifest.logicFunctions).toHaveLength(6);
expect(manifest.frontComponents).toHaveLength(4);
expect(manifest.roles).toHaveLength(2);
- expect(manifest.fields).toHaveLength(26);
+ expect(manifest.fields).toHaveLength(27);
expect(manifest.views).toHaveLength(3);
expect(manifest.navigationMenuItems).toHaveLength(3);