Deprecate address standard field (#6087)
Closes #5916 --------- Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
@ -31,7 +31,9 @@ describe('CompanyResolver (e2e)', () => {
|
||||
id
|
||||
name
|
||||
domainName
|
||||
address
|
||||
address {
|
||||
addressCity
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
@ -39,7 +41,7 @@ describe('CompanyResolver (e2e)', () => {
|
||||
data: {
|
||||
name: 'New Company',
|
||||
domainName: 'new-company.com',
|
||||
address: 'New Address',
|
||||
address: { addressCity: 'Paris' },
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -57,7 +59,7 @@ describe('CompanyResolver (e2e)', () => {
|
||||
expect(data).toHaveProperty('id');
|
||||
expect(data).toHaveProperty('name', 'New Company');
|
||||
expect(data).toHaveProperty('domainName', 'new-company.com');
|
||||
expect(data).toHaveProperty('address', 'New Address');
|
||||
expect(data).toHaveProperty('address', { addressCity: 'Paris' });
|
||||
});
|
||||
});
|
||||
|
||||
@ -69,7 +71,9 @@ describe('CompanyResolver (e2e)', () => {
|
||||
id
|
||||
name
|
||||
domainName
|
||||
address
|
||||
address {
|
||||
addressCity
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
@ -92,7 +96,7 @@ describe('CompanyResolver (e2e)', () => {
|
||||
expect(company).toHaveProperty('id');
|
||||
expect(company).toHaveProperty('name', 'New Company');
|
||||
expect(company).toHaveProperty('domainName', 'new-company.com');
|
||||
expect(company).toHaveProperty('address', 'New Address');
|
||||
expect(company).toHaveProperty('address', { addressCity: 'Paris' });
|
||||
|
||||
// Check if we have access to ressources outside of our workspace
|
||||
const instagramCompany = data.find((c) => c.name === 'Instagram');
|
||||
@ -109,7 +113,9 @@ describe('CompanyResolver (e2e)', () => {
|
||||
id
|
||||
name
|
||||
domainName
|
||||
address
|
||||
address {
|
||||
addressCity
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
@ -131,7 +137,7 @@ describe('CompanyResolver (e2e)', () => {
|
||||
expect(data).toHaveProperty('id');
|
||||
expect(data).toHaveProperty('name', 'New Company');
|
||||
expect(data).toHaveProperty('domainName', 'new-company.com');
|
||||
expect(data).toHaveProperty('address', 'New Address');
|
||||
expect(data).toHaveProperty('address', { addressCity: 'Paris' });
|
||||
});
|
||||
});
|
||||
|
||||
@ -143,7 +149,9 @@ describe('CompanyResolver (e2e)', () => {
|
||||
id
|
||||
name
|
||||
domainName
|
||||
address
|
||||
address {
|
||||
addressCity
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
@ -175,7 +183,9 @@ describe('CompanyResolver (e2e)', () => {
|
||||
id
|
||||
name
|
||||
domainName
|
||||
address
|
||||
address {
|
||||
addressCity
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
@ -186,7 +196,7 @@ describe('CompanyResolver (e2e)', () => {
|
||||
data: {
|
||||
name: 'Updated Company',
|
||||
domainName: 'updated-company.com',
|
||||
address: 'Updated Address',
|
||||
address: { addressCity: 'Updated City' },
|
||||
},
|
||||
},
|
||||
};
|
||||
@ -202,7 +212,7 @@ describe('CompanyResolver (e2e)', () => {
|
||||
expect(data).toHaveProperty('id');
|
||||
expect(data).toHaveProperty('name', 'Updated Company');
|
||||
expect(data).toHaveProperty('domainName', 'updated-company.com');
|
||||
expect(data).toHaveProperty('address', 'Updated Address');
|
||||
expect(data).toHaveProperty('address', { addressCity: 'Updated City' });
|
||||
});
|
||||
});
|
||||
|
||||
@ -214,7 +224,9 @@ describe('CompanyResolver (e2e)', () => {
|
||||
id
|
||||
name
|
||||
domainName
|
||||
address
|
||||
address {
|
||||
addressCity
|
||||
}
|
||||
}
|
||||
}
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user