mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-08 14:51:14 +00:00
[ACA-1767] add viewer actions tests in other list views (#646)
This commit is contained in:
committed by
Denys Vuika
parent
85599f6739
commit
0f3fffcff4
@@ -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,
|
||||
|
Reference in New Issue
Block a user