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,16 +15,14 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LoginPage, ApplicationService } from '@alfresco/adf-testing';
|
||||
import { LoginPage, ApplicationsUtil, ProcessUtil, StartProcessPage } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/process-services.page';
|
||||
import { StartProcessPage } from '../pages/adf/process-services/start-process.page';
|
||||
import { ProcessFiltersPage } from '../pages/adf/process-services/process-filters.page';
|
||||
import { ProcessServiceTabBarPage } from '../pages/adf/process-services/process-service-tab-bar.page';
|
||||
import { ProcessDetailsPage } from '../pages/adf/process-services/process-details.page';
|
||||
import { ProcessListPage } from '../pages/adf/process-services/process-list.page';
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { AppsActions } from '../actions/APS/apps.actions';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { browser } from 'protractor';
|
||||
import { User } from '../models/APS/user';
|
||||
@@ -36,7 +34,6 @@ describe('Task Assignee', () => {
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
const processServicesPage = new ProcessServicesPage();
|
||||
const taskPage = new TasksPage();
|
||||
const apps = new AppsActions();
|
||||
const users = new UsersActions();
|
||||
|
||||
const app = browser.params.resources.Files.TEST_ASSIGNEE;
|
||||
@@ -65,7 +62,7 @@ describe('Task Assignee', () => {
|
||||
} catch (e) {}
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
const applicationsService = new ApplicationService(this.alfrescoJsApi);
|
||||
const applicationsService = new ApplicationsUtil(this.alfrescoJsApi);
|
||||
try {
|
||||
await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
} catch (e) {
|
||||
@@ -144,9 +141,9 @@ describe('Task Assignee', () => {
|
||||
} catch (e) {}
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
const applicationsService = new ApplicationService(this.alfrescoJsApi);
|
||||
const applicationsService = new ApplicationsUtil(this.alfrescoJsApi);
|
||||
const appModel = await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
await apps.startProcess(this.alfrescoJsApi, appModel, app.processNames[1]);
|
||||
await new ProcessUtil(this.alfrescoJsApi).startProcessByDefinitionName(appModel.name, app.processNames[1]);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
Reference in New Issue
Block a user