[ACA-2160] add tests for Edit offline actions availability (#921)

* add tests for Edit offline actions availability

* fix delete / undo delete tests
This commit is contained in:
Adina Parpalita
2019-02-07 21:45:24 +02:00
committed by Denys Vuika
parent 5cc4f8ec55
commit 819f6ddced
17 changed files with 2831 additions and 875 deletions

View File

@@ -207,10 +207,11 @@ export class NodesApi extends RepoApi {
}
// lock node
async lockFile(nodeId: string, lockType: string = 'FULL') {
async lockFile(nodeId: string, lockType: string = 'ALLOW_OWNER_CHANGES') {
const data = <NodeBodyLock>{
type: lockType
};
await this.apiAuth();
return await this.nodesApi.lockNode(nodeId, data );
}