[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 251b325747
commit b44ff8aa0c
2 changed files with 8 additions and 2 deletions
@@ -22,6 +22,7 @@
width: 80px; width: 80px;
} }
} }
}
.mat-expansion-panel:not([class*='mat-elevation-z']) { .mat-expansion-panel:not([class*='mat-elevation-z']) {
box-shadow: none; box-shadow: none;
@@ -95,7 +95,12 @@ describe('ContentMetadataComponent', () => {
const clickOnGeneralInfoSave = () => { const clickOnGeneralInfoSave = () => {
findSaveGeneralInfoButton().click(); findSaveGeneralInfoButton().click();
fixture.detectChanges(); fixture.detectChanges();
}; }
const clickOnTagsSave = () => {
findSaveTagsButton().click();
fixture.detectChanges();
}
const clickOnTagsSave = () => { const clickOnTagsSave = () => {
findSaveTagsButton().click(); findSaveTagsButton().click();
@@ -813,7 +818,6 @@ describe('ContentMetadataComponent', () => {
describe('Display properties with aspect oriented config', () => { describe('Display properties with aspect oriented config', () => {
let appConfig: AppConfigService; let appConfig: AppConfigService;
let classesApi: ClassesApi;
let expectedNode: Node; let expectedNode: Node;
const verResponse: PropertyGroup = { const verResponse: PropertyGroup = {
@@ -1154,6 +1158,7 @@ describe('ContentMetadataComponent', () => {
it('should render tags after loading tags in ngOnInit', () => { it('should render tags after loading tags in ngOnInit', () => {
spyOn(tagService, 'getTagsByNodeId').and.returnValue(of(tagPaging)); spyOn(tagService, 'getTagsByNodeId').and.returnValue(of(tagPaging));
component.ngOnInit(); component.ngOnInit();
fixture.whenStable();
fixture.detectChanges(); fixture.detectChanges();
const tagElements = findTagElements(); const tagElements = findTagElements();
expect(tagElements).toHaveSize(2); expect(tagElements).toHaveSize(2);