mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user