[ACS-5551] code updated

This commit is contained in:
Anukriti Singh
2023-10-13 16:29:41 +05:30
parent f74450bc02
commit 59e5d3898d
3 changed files with 1 additions and 35 deletions
@@ -95,22 +95,12 @@ describe('ContentMetadataComponent', () => {
const clickOnGeneralInfoSave = () => {
findSaveGeneralInfoButton().click();
fixture.detectChanges();
}
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
}
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
};
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
}
};
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 {
color: var(--theme-primary-color);
cursor: pointer;
@@ -410,13 +410,6 @@ describe('TagsCreatorComponent', () => {
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(() => {
const tag = 'Some tag';