[ACA-1767] add viewer actions tests in other list views (#646)

This commit is contained in:
Adina Parpalita
2018-09-19 15:56:04 +03:00
committed by Denys Vuika
parent 85599f6739
commit 0f3fffcff4
5 changed files with 763 additions and 151 deletions

View File

@@ -85,6 +85,12 @@ export class NodesApi extends RepoApi {
return await this.alfrescoJsApi.core.nodesApi.getNodeChildren(nodeId);
}
async deleteNodeChildren(parentId: string) {
const nodeIds = (await this.getNodeChildren(parentId)).list.entries
.map(entries => entries.entry.id);
return await this.deleteNodesById(nodeIds);
}
async createNode(nodeType: string, name: string, parentId: string = '-my-', title: string = '', description: string = '') {
const nodeBody = {
name,