Fix integration tests (#8229)

Removing leftovers of the deprecated "activity" object which is fixing
our integration tests
This commit is contained in:
Charles Bochet 2024-10-31 10:36:29 +01:00 committed by GitHub
parent 2bfd0fe252
commit 99837f9752
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 11 deletions

View File

@ -19,8 +19,6 @@ export const findActivityTargetsOperationSignatureFactory: RecordGqlOperationSig
__typename: true,
createdAt: true,
updatedAt: true,
activity: true,
activityId: true,
...generateActivityTargetMorphFieldKeys(objectMetadataItems),
},
});

View File

@ -25,7 +25,6 @@ const ATTACHMENT_GQL_FIELDS = `
updatedAt
deletedAt
authorId
activityId
taskId
noteId
personId
@ -70,7 +69,6 @@ describe('attachments resolvers (integration)', () => {
expect(attachment).toHaveProperty('updatedAt');
expect(attachment).toHaveProperty('deletedAt');
expect(attachment).toHaveProperty('authorId');
expect(attachment).toHaveProperty('activityId');
expect(attachment).toHaveProperty('taskId');
expect(attachment).toHaveProperty('noteId');
expect(attachment).toHaveProperty('personId');
@ -104,7 +102,6 @@ describe('attachments resolvers (integration)', () => {
expect(createdAttachment).toHaveProperty('updatedAt');
expect(createdAttachment).toHaveProperty('deletedAt');
expect(createdAttachment).toHaveProperty('authorId');
expect(createdAttachment).toHaveProperty('activityId');
expect(createdAttachment).toHaveProperty('taskId');
expect(createdAttachment).toHaveProperty('noteId');
expect(createdAttachment).toHaveProperty('personId');
@ -137,7 +134,6 @@ describe('attachments resolvers (integration)', () => {
expect(attachments).toHaveProperty('updatedAt');
expect(attachments).toHaveProperty('deletedAt');
expect(attachments).toHaveProperty('authorId');
expect(attachments).toHaveProperty('activityId');
expect(attachments).toHaveProperty('taskId');
expect(attachments).toHaveProperty('noteId');
expect(attachments).toHaveProperty('personId');
@ -169,7 +165,6 @@ describe('attachments resolvers (integration)', () => {
expect(attachment).toHaveProperty('updatedAt');
expect(attachment).toHaveProperty('deletedAt');
expect(attachment).toHaveProperty('authorId');
expect(attachment).toHaveProperty('activityId');
expect(attachment).toHaveProperty('taskId');
expect(attachment).toHaveProperty('noteId');
expect(attachment).toHaveProperty('personId');

View File

@ -14,8 +14,8 @@ import { generateRecordName } from 'test/integration/utils/generate-record-name'
const NOTE_TARGET_1_ID = '777a8457-eb2d-40ac-a707-551b615b6987';
const NOTE_TARGET_2_ID = '777a8457-eb2d-40ac-a707-551b615b6988';
const NOTE_TARGET_3_ID = '777a8457-eb2d-40ac-a707-551b615b6989';
const PERSON_1_ID = '777a8457-eb2d-40ac-a707-441b615b6989';
const PERSON_2_ID = '777a8457-eb2d-40ac-a707-331b615b6989';
const PERSON_1_ID = 'f875ff46-b881-41ba-973a-b9cd5345e8f0';
const PERSON_2_ID = '1fe0f78c-8c59-4ce6-ae02-56571331b252';
const NOTE_TARGET_GQL_FIELDS = `
id
createdAt

View File

@ -14,8 +14,8 @@ import { generateRecordName } from 'test/integration/utils/generate-record-name'
const TASK_TARGET_1_ID = '777a8457-eb2d-40ac-a707-551b615b6987';
const TASK_TARGET_2_ID = '777a8457-eb2d-40ac-a707-551b615b6988';
const TASK_TARGET_3_ID = '777a8457-eb2d-40ac-a707-551b615b6989';
const PERSON_1_ID = '777a8457-eb2d-40ac-a707-441b615b6989';
const PERSON_2_ID = '777a8457-eb2d-40ac-a707-331b615b6989';
const PERSON_1_ID = 'f875ff46-b881-41ba-973a-b9cd5345e8f0';
const PERSON_2_ID = '1fe0f78c-8c59-4ce6-ae02-56571331b252';
const TASK_TARGET_GQL_FIELDS = `
id
createdAt