mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]Added edit functionality for each panel and updated test cases
This commit is contained in:
committed by
Anukriti Singh
parent
251b325747
commit
b44ff8aa0c
+1
@@ -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;
|
||||||
|
|||||||
+7
-2
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user