mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[no-issue] Parallel run e2e and e2e common action refactoring (#4702)
This commit is contained in:
@@ -19,6 +19,7 @@ import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { TasksPage } from '../pages/adf/process-services/tasksPage';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/processServicesPage';
|
||||
import { ChecklistDialog } from '../pages/adf/process-services/dialog/createChecklistDialog';
|
||||
import { NavigationBarPage } from '../pages/adf/navigationBarPage';
|
||||
|
||||
import CONSTANTS = require('../util/constants');
|
||||
|
||||
@@ -31,7 +32,6 @@ import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import fs = require('fs');
|
||||
import path = require('path');
|
||||
import { browser } from 'protractor';
|
||||
|
||||
describe('Checklist component', () => {
|
||||
|
||||
@@ -41,6 +41,7 @@ describe('Checklist component', () => {
|
||||
const taskPage = new TasksPage();
|
||||
const processServices = new ProcessServicesPage();
|
||||
const checklistDialog = new ChecklistDialog();
|
||||
const navigationBarPage = new NavigationBarPage();
|
||||
|
||||
const tasks = ['no checklist created task', 'checklist number task', 'remove running checklist', 'remove completed checklist', 'hierarchy'];
|
||||
const checklists = ['cancelCheckList', 'dialogChecklist', 'addFirstChecklist', 'addSecondChecklist'];
|
||||
@@ -72,13 +73,14 @@ describe('Checklist component', () => {
|
||||
this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[i] });
|
||||
}
|
||||
|
||||
loginPage.loginToProcessServicesUsingUserModel(processUserModel);
|
||||
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
beforeEach(async (done) => {
|
||||
await browser.get(TestConfig.adf.url + '/activiti');
|
||||
navigationBarPage.clickHomeButton();
|
||||
navigationBarPage.navigateToProcessServicesPage();
|
||||
processServices.goToTaskApp().clickTasksButton();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
done();
|
||||
@@ -143,7 +145,6 @@ describe('Checklist component', () => {
|
||||
taskPage.removeChecklists(removeChecklist[1]);
|
||||
taskPage.checkChecklistIsDisplayed(removeChecklist[0]);
|
||||
taskPage.checkChecklistIsNotDisplayed(removeChecklist[1]);
|
||||
// expect(taskPage.getNumberOfChecklists()).toEqual('1');
|
||||
});
|
||||
|
||||
it('[C261027] Should not be able to remove a completed Checklist when clicking on remove button', () => {
|
||||
|
Reference in New Issue
Block a user