diff --git a/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts b/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts index fc9e2e63ff5..5a65f77f33b 100644 --- a/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts +++ b/packages/common/test/content/_internal/ContentUiSchemaEdit.test.ts @@ -50,6 +50,12 @@ describe("buildUiSchema: content edit", () => { icon: true, labelKey: "some.scope.fields.title.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -64,6 +70,14 @@ describe("buildUiSchema: content edit", () => { helperText: { labelKey: "some.scope.fields.summary.hint", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts b/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts index 2c249fb086d..e946e5ff740 100644 --- a/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts +++ b/packages/common/test/discussions/_internal/DiscussionUiSchemaCreate.test.ts @@ -19,6 +19,12 @@ describe("buildUiSchema: discussion create", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, diff --git a/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts b/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts index 5a9dd0d2276..6b5c588f18e 100644 --- a/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts +++ b/packages/common/test/discussions/_internal/DiscussionUiSchemaEdit.test.ts @@ -51,6 +51,12 @@ describe("buildUiSchema: discussion edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -83,6 +89,14 @@ describe("buildUiSchema: discussion edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts b/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts index ec14f040e59..9de41e1a8a2 100644 --- a/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts +++ b/packages/common/test/groups/_internal/GroupUiSchemaEdit.test.ts @@ -27,6 +27,12 @@ describe("buildUiSchema: group edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -38,6 +44,14 @@ describe("buildUiSchema: group edit", () => { control: "hub-field-input-input", type: "textarea", rows: 4, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts b/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts index 13b31ce708a..4cd783c5ae3 100644 --- a/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts +++ b/packages/common/test/initiative-templates/_internal/InitiativeTemplateUiSchemaEdit.test.ts @@ -36,6 +36,12 @@ describe("buildUiSchema: initiative template edit", () => { icon: true, labelKey: `some.scope.fields.name.requiredError`, }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -73,6 +79,14 @@ describe("buildUiSchema: initiative template edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts index 6c08cd970cf..d31f8378b2b 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaCreate.test.ts @@ -48,6 +48,12 @@ describe("buildUiSchema: initiative create", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -62,6 +68,14 @@ describe("buildUiSchema: initiative create", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, ], diff --git a/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts b/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts index ea6b8c8d3f3..e5b2f39d5d4 100644 --- a/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts +++ b/packages/common/test/initiatives/_internal/InitiativeUiSchemaEdit.test.ts @@ -52,6 +52,12 @@ describe("buildUiSchema: initiative edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -66,6 +72,14 @@ describe("buildUiSchema: initiative edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts b/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts index 847f47b19a8..247a0dac772 100644 --- a/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts +++ b/packages/common/test/pages/_internal/PageUiSchemaEdit.test.ts @@ -47,6 +47,12 @@ describe("buildUiSchema: page edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -61,6 +67,14 @@ describe("buildUiSchema: page edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts index c73841b784f..126e17f6ba6 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaCreate.test.ts @@ -48,6 +48,12 @@ describe("buildUiSchema: project create", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -62,6 +68,14 @@ describe("buildUiSchema: project create", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts b/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts index 32f68ab2b20..1b0979d50c5 100644 --- a/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts +++ b/packages/common/test/projects/_internal/ProjectUiSchemaEdit.test.ts @@ -56,6 +56,12 @@ describe("buildUiSchema: project edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -70,6 +76,14 @@ describe("buildUiSchema: project edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts b/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts index 3d0e764fd78..954d16f3ea0 100644 --- a/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts +++ b/packages/common/test/sites/_internal/SiteUiSchemaCreate.test.ts @@ -48,6 +48,12 @@ describe("buildUiSchema: site create", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -62,6 +68,14 @@ describe("buildUiSchema: site create", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, ], diff --git a/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts b/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts index 7816e1e218d..581275d8c34 100644 --- a/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts +++ b/packages/common/test/sites/_internal/SiteUiSchemaEdit.test.ts @@ -47,6 +47,12 @@ describe("buildUiSchema: site edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -61,6 +67,14 @@ describe("buildUiSchema: site edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, { diff --git a/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts b/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts index 80c89af39c3..95fe90f2b42 100644 --- a/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts +++ b/packages/common/test/templates/_internal/TemplateUiSchemaEdit.test.ts @@ -30,6 +30,12 @@ describe("buildUiSchema: template edit", () => { icon: true, labelKey: "some.scope.fields.name.requiredError", }, + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.name.maxLengthError`, + }, ], }, }, @@ -67,6 +73,14 @@ describe("buildUiSchema: template edit", () => { helperText: { labelKey: "some.scope.fields.summary.helperText", }, + messages: [ + { + type: "ERROR", + keyword: "maxLength", + icon: true, + labelKey: `shared.fields.summary.maxLengthError`, + }, + ], }, }, {