Files
twenty/packages/twenty-server/test/integration/metadata/suites/page-layout/failing-page-layout-update.integration-spec.ts
T
Raphaël Bosi f48adb5f07 Migrate page layout services (#16443)
Last step of the page layout migration:
- Migrate services
- Write integration tests
2025-12-10 13:49:44 +00:00

18 lines
655 B
TypeScript

import { faker } from '@faker-js/faker';
import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
import { updateOnePageLayout } from 'test/integration/metadata/suites/page-layout/utils/update-one-page-layout.util';
describe('Page layout update should fail', () => {
it('when updating a non-existent page layout', async () => {
const { errors } = await updateOnePageLayout({
expectToFail: true,
input: {
id: faker.string.uuid(),
name: 'Updated Name',
},
});
expectOneNotInternalServerErrorSnapshot({ errors });
});
});