[ACS-5645]Added edit functionality for each panel and updated test cases

This commit is contained in:
Yasa-Nataliya
2023-10-13 16:29:16 +05:30
committed by Anukriti Singh
parent caeeec1382
commit adb323037e
2 changed files with 8 additions and 3 deletions
@@ -110,7 +110,12 @@ describe('ContentMetadataComponent', () => {
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
};
}
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
}
const findTagsCreator = (): TagsCreatorComponent => fixture.debugElement.query(By.directive(TagsCreatorComponent))?.componentInstance;
@@ -21,7 +21,7 @@ import { NotificationService } from '@alfresco/adf-core';
import { By } from '@angular/platform-browser';
import { TranslateModule } from '@ngx-translate/core';
import { MatIconModule } from '@angular/material/icon';
import { MatError, MatFormField, MatFormFieldModule } from '@angular/material/form-field';
import { MatError, MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';
import { MatButtonModule } from '@angular/material/button';
@@ -300,7 +300,7 @@ describe('TagsCreatorComponent', () => {
const tagNameField = fixture.debugElement.query(By.css(tagNameFieldSelector));
expect(tagNameField).toBeTruthy();
expect(tagNameField.nativeElement.hasAttribute('hidden')).toBeFalsy();
expect(tagNameField.query(By.directive(MatFormField))).toBeTruthy();
expect(tagNameField).toBeTruthy();
});
it('should input be autofocused', fakeAsync(() => {