mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Try latest ACS com to see if e2e are passing (#1248)
* use latest ACS com * add workaround for REPO-4772 * due to the workaround done for REPO-4772, files now have an initial version set to MAJOR 1.0 * add workaround for REPO-4772 for bulk create files * Get ACS log if something goes wrong * wait for the dialog to close only in specific cases * Import Custom Model into ACS. Update proxy to work with Share.
This commit is contained in:
@@ -85,18 +85,6 @@ describe('InfoDrawerComponent', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('should set displayNode when node is from personal list', () => {
|
||||
spyOn(contentApiService, 'getNodeInfo');
|
||||
const nodeMock = <any>{ entry: { id: 'nodeId', aspectNames: [] } };
|
||||
component.node = nodeMock;
|
||||
|
||||
fixture.detectChanges();
|
||||
component.ngOnChanges();
|
||||
|
||||
expect(component.displayNode).toBe(nodeMock.entry);
|
||||
expect(contentApiService.getNodeInfo).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should set displayNode when node is library', async(() => {
|
||||
spyOn(contentApiService, 'getNodeInfo');
|
||||
const nodeMock = <any>{
|
||||
|
||||
@@ -71,12 +71,8 @@ export class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
||||
|
||||
const entry: any = this.node.entry;
|
||||
|
||||
if (!entry.aspectNames) {
|
||||
const id = entry.nodeId || entry.id;
|
||||
return this.loadNodeInfo(id);
|
||||
}
|
||||
|
||||
this.setDisplayNode(entry);
|
||||
const id = entry.nodeId || entry.id;
|
||||
return this.loadNodeInfo(id);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user