chore: update ESLint and cspell configurations to ignore story files (#11681)

* chore: update ESLint and cspell configurations to ignore story files

* fix: update custom widget identifiers in form renderer tests and mock data
This commit is contained in:
Denys Vuika
2026-02-23 13:58:51 +00:00
committed by GitHub
parent 303a9efb3e
commit 2f8d8c2007
4 changed files with 19 additions and 12 deletions
@@ -613,24 +613,24 @@ describe('Form Renderer Component', () => {
describe('Custom Widget', () => {
it('Should be able to correctly display a custom process cloud widget', async () => {
formRenderingService.register({ bananaforevah: () => TextWidgetComponent }, true);
formRenderingService.register({ banana: () => TextWidgetComponent }, true);
formRendererComponent.formDefinition = formService.parseForm(customWidgetForm.formRepresentation.formDefinition);
fixture.detectChanges();
await fixture.whenStable();
expectElementToBeVisible(testingUtils, 'Text0vdi18');
expectElementToBeVisible(testingUtils, 'bananaforevah0k8gui');
expectElementToBeVisible(testingUtils, 'banana0k8gui');
});
it('Should be able to correctly use visibility in a custom process cloud widget ', async () => {
formRenderingService.register({ bananaforevah: () => TextWidgetComponent }, true);
formRenderingService.register({ banana: () => TextWidgetComponent }, true);
formRendererComponent.formDefinition = formService.parseForm(customWidgetFormWithVisibility.formRepresentation.formDefinition);
fixture.detectChanges();
await fixture.whenStable();
expectElementToBeHidden(testingUtils, 'bananaforevah0k8gui');
expectElementToBeHidden(testingUtils, 'banana0k8gui');
typeIntoInput(testingUtils, '#Text0vdi18', 'no');
fixture.detectChanges();
await fixture.whenStable();
expectElementToBeVisible(testingUtils, 'bananaforevah0k8gui');
expectElementToBeVisible(testingUtils, 'banana0k8gui');
});
});
@@ -1414,9 +1414,9 @@ export const customWidgetForm = {
],
'2': [
{
id: 'bananaforevah0k8gui',
name: 'bananaforevah',
type: 'bananaforevah',
id: 'banana0k8gui',
name: 'banana',
type: 'banana',
required: true,
readOnly: false,
isCustomType: true,
@@ -1478,9 +1478,9 @@ export const customWidgetFormWithVisibility = {
],
'2': [
{
id: 'bananaforevah0k8gui',
name: 'bananaforevah',
type: 'bananaforevah',
id: 'banana0k8gui',
name: 'banana',
type: 'banana',
required: true,
readOnly: false,
isCustomType: true,