mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5551] code updated
This commit is contained in:
+1
-11
@@ -95,22 +95,12 @@ describe('ContentMetadataComponent', () => {
|
|||||||
const clickOnGeneralInfoSave = () => {
|
const clickOnGeneralInfoSave = () => {
|
||||||
findSaveGeneralInfoButton().click();
|
findSaveGeneralInfoButton().click();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}
|
|
||||||
|
|
||||||
const clickOnTagsSave = () => {
|
|
||||||
findSaveTagsButton().click();
|
|
||||||
fixture.detectChanges();
|
|
||||||
}
|
|
||||||
|
|
||||||
const clickOnTagsSave = () => {
|
|
||||||
findSaveTagsButton().click();
|
|
||||||
fixture.detectChanges();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const clickOnTagsSave = () => {
|
const clickOnTagsSave = () => {
|
||||||
findSaveTagsButton().click();
|
findSaveTagsButton().click();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}
|
};
|
||||||
|
|
||||||
const findTagsCreator = (): TagsCreatorComponent => fixture.debugElement.query(By.directive(TagsCreatorComponent))?.componentInstance;
|
const findTagsCreator = (): TagsCreatorComponent => fixture.debugElement.query(By.directive(TagsCreatorComponent))?.componentInstance;
|
||||||
|
|
||||||
|
|||||||
@@ -63,23 +63,6 @@ adf-tags-creator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.adf-tag-search-field {
|
|
||||||
background: var(--adf-metadata-buttons-background-color);
|
|
||||||
height: 32px;
|
|
||||||
border-radius: 12px;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
padding: 0 12px;
|
|
||||||
|
|
||||||
.mat-form-field-underline {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mat-form-field-wrapper {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.adf-create-tag-label {
|
.adf-create-tag-label {
|
||||||
color: var(--theme-primary-color);
|
color: var(--theme-primary-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@@ -410,13 +410,6 @@ describe('TagsCreatorComponent', () => {
|
|||||||
expect(getFirstError()).toBe('TAG.TAGS_CREATOR.ERRORS.ALREADY_ADDED_TAG');
|
expect(getFirstError()).toBe('TAG.TAGS_CREATOR.ERRORS.ALREADY_ADDED_TAG');
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should not show error for required if tags are changed', fakeAsync(() => {
|
|
||||||
typeTag('');
|
|
||||||
component.tags = ['new tag 1', 'new tag 2'];
|
|
||||||
fixture.detectChanges();
|
|
||||||
expect(getFirstError()).toBeUndefined();
|
|
||||||
}));
|
|
||||||
|
|
||||||
it('should show error when duplicated already existing tag', fakeAsync(() => {
|
it('should show error when duplicated already existing tag', fakeAsync(() => {
|
||||||
const tag = 'Some tag';
|
const tag = 'Some tag';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user