mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ACA-3040]Refactor/and move to testing package POs and API calls (#5607)
* Refactor/and move to testing package POs and API calls * Remove method * Add task list PO * Use adf testing package APS1 calls * Fix some tests * Update new test * Fix some process-services tests * no message * Fix 2 tests * Create StartProcess page in ADF testing package; refactor process-services tests * no message
This commit is contained in:
@@ -15,14 +15,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LoginPage, FileBrowserUtil, ViewerPage, ApplicationService } from '@alfresco/adf-testing';
|
||||
import { LoginPage, FileBrowserUtil, ViewerPage, ApplicationsUtil, ProcessUtil } from '@alfresco/adf-testing';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/process-filters.page';
|
||||
import { ProcessDetailsPage } from '../pages/adf/process-services/process-details.page';
|
||||
import { AttachmentListPage } from '../pages/adf/process-services/attachment-list.page';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { FileModel } from '../models/ACS/file.model';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
@@ -51,7 +50,6 @@ describe('Attachment list action menu for processes', () => {
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
const apps = new AppsActions();
|
||||
const users = new UsersActions();
|
||||
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
@@ -67,16 +65,17 @@ describe('Attachment list action menu for processes', () => {
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
|
||||
const applicationsService = new ApplicationService(this.alfrescoJsApi);
|
||||
const applicationsService = new ApplicationsUtil(this.alfrescoJsApi);
|
||||
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
|
||||
await apps.startProcess(this.alfrescoJsApi, importedApp, processName.completed);
|
||||
await apps.startProcess(this.alfrescoJsApi, importedApp, processName.active);
|
||||
await apps.startProcess(this.alfrescoJsApi, 'Task App', processName.taskApp);
|
||||
await apps.startProcess(this.alfrescoJsApi, 'Task App', processName.emptyList);
|
||||
await apps.startProcess(this.alfrescoJsApi, 'Task App', processName.dragDrop);
|
||||
const processUtil = new ProcessUtil(this.alfrescoJsApi);
|
||||
await processUtil.startProcessOfApp(importedApp.name, processName.completed);
|
||||
await processUtil.startProcessOfApp(importedApp.name, processName.active);
|
||||
await processUtil.startProcessOfApp('Task App', processName.taskApp);
|
||||
await processUtil.startProcessOfApp('Task App', processName.emptyList);
|
||||
await processUtil.startProcessOfApp('Task App', processName.dragDrop);
|
||||
|
||||
await loginPage.loginToProcessServicesUsingUserModel(user);
|
||||
});
|
||||
|
Reference in New Issue
Block a user