[ACA-2951]Add APS1 calls to adf testing package (#5566)

* Add APS1 calls to adf testing package

* no message

* Change to use AlfrescoApi instead of ApiService

* Refactor process-services tests to use API calls implementation from testing package

* Fix resource file

* no message

* Fix widget tests

* Fix tests

* no message

* Unblocking travis
This commit is contained in:
Cristina Jalba
2020-04-03 11:15:06 +03:00
committed by GitHub
parent 179bdb2790
commit 03a93e45d9
55 changed files with 325 additions and 153 deletions

View File

@@ -15,10 +15,9 @@
* limitations under the License.
*/
import { LoginPage } from '@alfresco/adf-testing';
import { LoginPage, ApplicationService } from '@alfresco/adf-testing';
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
import { browser, by } from 'protractor';
import { AppsActions } from '../actions/APS/apps.actions';
import { UsersActions } from '../actions/users.actions';
import { FileModel } from '../models/ACS/file.model';
import { Tenant } from '../models/APS/tenant';
@@ -50,7 +49,6 @@ describe('Start Task - Custom App', () => {
});
beforeAll(async () => {
const apps = new AppsActions();
const users = new UsersActions();
this.alfrescoJsApi = new AlfrescoApi({
@@ -68,7 +66,9 @@ describe('Start Task - Custom App', () => {
await this.alfrescoJsApi.login(processUserModel.email, processUserModel.password);
appModel = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
const applicationsService = new ApplicationService(this.alfrescoJsApi);
appModel = await applicationsService.importPublishDeployApp(app.file_path);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});