[ADF-3018] Create automated test for replacing an app (#3572)

* [ADF-3018] Create automated test for replacing an app

* Use await in the test

* Fixing document list pagination test.

* Implemented delete version and delete entire app test cases.

* Added a log.

* Added the api call into protractor control flow.

* Renamed the test cases

* Commented 'Click Audit Log button' test.

* Added some in control flow.

* Changing the test rail ID.
This commit is contained in:
cristinaj
2018-07-16 15:41:47 +03:00
committed by Eugenio Romano
parent 192cca63aa
commit 98243f0450
5 changed files with 147 additions and 11 deletions

View File

@@ -0,0 +1,20 @@
import TestConfig = require('../../test.config');
import AppPublish = require('../../models/APS/AppPublish');
export class ModelsActions {
async deleteVersionModel(alfrescoJsApi, modelId) {
let versionModelDeleted = await alfrescoJsApi.activiti.modelsApi.deleteModel(modelId, { cascade: false, deleteRuntimeApp : true });
return versionModelDeleted;
}
async deleteEntireModel(alfrescoJsApi, modelId) {
let modelDeleted = await alfrescoJsApi.activiti.modelsApi.deleteModel(modelId, { cascade: true, deleteRuntimeApp : true });
return modelDeleted;
}
}