remove not needed spaces (#5495)

* remove not usefull spaces

* increase timeout

* increase timeout

* fix
This commit is contained in:
Eugenio Romano
2020-02-23 17:00:16 +00:00
committed by GitHub
parent 9e0e2bdfa6
commit 2d0b571875
302 changed files with 378 additions and 1245 deletions

View File

@@ -55,8 +55,7 @@ describe('Modify applications', () => {
appVersionToBeDeleted = await apps.importPublishDeployApp(this.alfrescoJsApi, appToBeDeleted.file_location);
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
it('[C260198] Should the app be displayed on dashboard when is deployed on APS', async () => {
await navigationBarPage.navigateToProcessServicesPage();
@@ -162,5 +161,4 @@ describe('Modify applications', () => {
await expect(await processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.RED);
await expect(await processServicesPage.getAppIconType(appToBeDeleted.title)).toEqual(CONSTANTS.APP_ICON.USER);
});
});

View File

@@ -56,8 +56,7 @@ describe('Start Task - Task App', () => {
await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
afterAll(async () => {
this.alfrescoJsApi = new AlfrescoApi({
@@ -68,8 +67,7 @@ describe('Start Task - Task App', () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C274690] Should be able to open a file attached to a start form', async () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
@@ -90,5 +88,4 @@ describe('Start Task - Task App', () => {
await viewerPage.clickCloseButton();
await taskPage.tasksListPage().checkContentIsDisplayed('View file');
});
});

View File

@@ -70,15 +70,13 @@ describe('Attach Form Component', () => {
await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: testNames.taskName });
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterAll(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
});
it('[C280047] Should be able to view the attach-form component after creating a standalone task', async () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();

View File

@@ -69,16 +69,14 @@ describe('Checklist component', () => {
}
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
await navigationBarPage.clickHomeButton();
await navigationBarPage.navigateToProcessServicesPage();
await (await processServices.goToTaskApp()).clickTasksButton();
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
});
});
it('[C279976] Should no checklist be created when no title is typed', async () => {
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]);
@@ -202,5 +200,4 @@ describe('Checklist component', () => {
await taskPage.tasksListPage().checkContentIsDisplayed(hierarchyChecklist[2]);
await taskPage.tasksListPage().checkContentIsDisplayed(hierarchyChecklist[3]);
});
});

View File

@@ -58,14 +58,12 @@ describe('Comment component for Processes', () => {
processInstanceId = processWithComment.id;
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterAll(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
it('[C260464] Should be able to add a comment on APS and check on ADF', async () => {

View File

@@ -65,16 +65,12 @@ describe('Comment component for Processes', () => {
appId = importedApp.id;
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterAll(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
it('[C260237] Should not be able to add a comment on a completed task', async () => {

View File

@@ -53,8 +53,7 @@ describe('Sorting for process filters', () => {
provider: 'BPM',
hostBpm: browser.params.testConfig.adf_aps.host
});
});
});
beforeEach(async () => {
const users = new UsersActions();
@@ -70,8 +69,7 @@ describe('Sorting for process filters', () => {
appId = importedApp.id;
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterEach(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
@@ -79,8 +77,7 @@ describe('Sorting for process filters', () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
});
it('[C260476] Should be able to create a filter on APS for running processes - Oldest first and check on ADF', async () => {
await this.alfrescoJsApi.activiti.userFiltersApi.createUserProcessInstanceFilter({

View File

@@ -64,14 +64,12 @@ describe('New Process Filters', () => {
await this.alfrescoJsApi.login(user.email, user.password);
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterAll(async () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
});
it('[C279965] Should be able to view default filters on ADF', async () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton();
@@ -192,5 +190,4 @@ describe('New Process Filters', () => {
await processFiltersPage.checkFilterIsNotDisplayed(processFilter.deleted);
});
});

View File

@@ -116,8 +116,7 @@ describe('Start Task - Custom App', () => {
});
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
describe('', () => {
@@ -492,5 +491,4 @@ describe('Start Task - Custom App', () => {
await expect(await taskListSinglePage.taskList().getNoTasksFoundMessage()).toEqual(noTasksFoundMessage);
});
});

View File

@@ -48,15 +48,13 @@ describe('Dynamic Table', () => {
user = await users.createTenantAndUser(this.alfrescoJsApi);
tenantId = user.tenantId;
});
});
afterAll(async () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
});
describe('Date Picker', () => {
const app = browser.params.resources.Files.DYNAMIC_TABLE_APP;
@@ -171,5 +169,4 @@ describe('Dynamic Table', () => {
await widget.dynamicTable().checkItemIsPresent(dropdownOption);
});
});
});

View File

@@ -61,8 +61,7 @@ describe('Empty Process List Test', () => {
await apps.importPublishDeployApp(this.alfrescoJsApi, appB.file_location);
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
it('[C260494] Should add process to list when a process is created', async () => {
await navigationBarPage.navigateToProcessServicesPage();
@@ -93,5 +92,4 @@ describe('Empty Process List Test', () => {
await processDetailsPage.checkProcessDetailsCard();
});
});

View File

@@ -100,6 +100,5 @@ describe('Form Component', () => {
await formPage.checkErrorMessageForWidgetIsNotDisplayed(message.warningDate);
await formPage.checkErrorMessageIsNotDisplayed(message.errorLogDate);
await formPage.checkErrorLogMessage(message.errorLabel);
});
});
});

View File

@@ -59,16 +59,14 @@ describe('Form widgets - People', () => {
appModel = await appsActions.importPublishDeployApp(alfrescoJsApi, app.file_location);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
afterAll(async () => {
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
beforeEach(async () => {
await (await (await new NavigationBarPage().navigateToProcessServicesPage()).goToApp(appModel.name)).clickProcessButton();

View File

@@ -190,8 +190,7 @@ describe('Form widgets', () => {
await expect(await widget.dynamicTable().getColumnName(appFields.dynamicTable_id))
.toContain(formInstance.getWidgetBy('id', appFields.dynamicTable_id).columnDefinitions[0].name);
});
});
});
describe('with fields involving other people', () => {

View File

@@ -347,5 +347,4 @@ describe('Info Drawer', () => {
await expect(await taskPage.taskDetails().getCreated()).toEqual(moment(Date.now()).format(dateFormat));
await expect(await taskPage.taskDetails().getFormName()).toEqual(formName);
}
});

View File

@@ -67,8 +67,7 @@ describe('Process List - Pagination when adding processes', () => {
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
await (await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton();
});
});
it('[C261046] Should keep Items per page after adding processes', async () => {
await processDetailsPage.checkProcessTitleIsDisplayed();

View File

@@ -66,8 +66,7 @@ describe('Items per page set to 15 and adding of tasks', () => {
}
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
it('[C260306] Items per page set to 15 and adding of tasks', async () => {
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp();
@@ -94,5 +93,4 @@ describe('Items per page set to 15 and adding of tasks', () => {
await paginationPage.checkNextPageButtonIsDisabled();
await paginationPage.checkPreviousPageButtonIsEnabled();
});
});

View File

@@ -69,8 +69,7 @@ describe('People component', () => {
await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[2] });
await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[3] });
await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: tasks[4] });
});
});
beforeEach(async () => {
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
@@ -78,8 +77,7 @@ describe('People component', () => {
await navigationBarPage.navigateToProcessServicesPage();
await (await processServices.goToTaskApp()).clickTasksButton();
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
});
});
it('[C279989] Should no people be involved when no user is typed', async () => {
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]);
@@ -231,5 +229,4 @@ describe('People component', () => {
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
await taskPage.tasksListPage().checkContentIsNotDisplayed(tasks[3]);
});
});

View File

@@ -77,14 +77,12 @@ describe('Attachment list action menu for processes', () => {
await apps.startProcess(this.alfrescoJsApi, 'Task App', processName.dragDrop);
await loginPage.loginToProcessServicesUsingUserModel(user);
});
afterAll(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
it('[C260228] Should be able to access options of a file attached to an active process', async () => {
@@ -179,5 +177,4 @@ describe('Attachment list action menu for processes', () => {
await attachmentListPage.checkFileIsRemoved(pngFile.name);
await attachmentListPage.checkEmptyAttachmentList();
});
});

View File

@@ -255,5 +255,4 @@ describe('Process Filters Test', () => {
await expect(await processDetailsPage.getCreatedBy()).toEqual(`${user.firstName} ${user.lastName}`);
await expect(await processDetailsPage.getProcessDescription()).toEqual(CONSTANTS.PROCESS_DESCRIPTION);
}
});

View File

@@ -67,19 +67,16 @@ describe('Process Instance Details', () => {
await processListPage.checkProcessListIsDisplayed();
process = await this.alfrescoJsApi.activiti.processApi.getProcessInstance(processModel.id);
});
});
afterAll(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appModel.id);
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(user.tenantId);
});
});
it('[C307031] Should display the created date in the default format', async () => {
await processDetailsPage.checkDetailsAreDisplayed();
await expect(await processDetailsPage.getCreated()).toEqual(moment(process.started).format(PROCESS_DATE_FORMAT));
});
});

View File

@@ -82,8 +82,7 @@ describe('Process List Test', () => {
await this.alfrescoJsApi.activiti.taskFormsApi.completeTaskForm(procWithUserWidgetTaskId.toString(), { values: { label: null } });
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterAll(async () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appDateModel.id);
@@ -92,13 +91,11 @@ describe('Process List Test', () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(user.tenantId);
});
});
beforeEach(async () => {
await BrowserActions.getUrl(browser.params.testConfig.adf.url + '/process-list');
});
});
it('[C286638] Should display all process by default', async () => {
await processListDemoPage.checkAppIdFieldIsDisplayed();

View File

@@ -71,8 +71,7 @@ describe('Process List - Pagination', () => {
deployedTestApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
describe('Empty processes', () => {

View File

@@ -68,8 +68,7 @@ describe('Task List Pagination - Sorting', () => {
}
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
it('[C260308] Should be possible to sort tasks by name', async () => {
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp();
@@ -88,5 +87,4 @@ describe('Task List Pagination - Sorting', () => {
await expect(JSON.stringify(list) === JSON.stringify(taskNames)).toEqual(true);
});
});
});

View File

@@ -60,14 +60,12 @@ describe('Start Task - Task App', () => {
await this.alfrescoJsApi.activiti.appsApi.importAppDefinition(file);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
});
});
it('[C260421] Should a standalone task be displayed when creating a new task without form', async () => {
@@ -138,5 +136,4 @@ describe('Start Task - Task App', () => {
await expect(await taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
await expect(await taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage);
});
});

View File

@@ -71,8 +71,7 @@ describe('Start Task - Custom App', () => {
appModel = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
it('[C263942] Should be possible to modify a task', async () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToApp(appModel.name)).clickTasksButton();
@@ -84,9 +83,7 @@ describe('Start Task - Custom App', () => {
await task.addForm(app.formName);
await task.clickStartButton();
await taskPage
.tasksListPage()
.checkContentIsDisplayed(tasks[0]);
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[0]);
const taskDetails = await taskPage.taskDetails();
@@ -108,12 +105,9 @@ describe('Start Task - Custom App', () => {
await checklistDialog.addName(firstChecklist);
await checklistDialog.clickCreateChecklistButton();
await taskPage
.checkChecklistIsDisplayed(firstChecklist);
await taskPage.checkChecklistIsDisplayed(firstChecklist);
await taskPage
.taskDetails()
.selectDetailsTab();
await taskPage.taskDetails().selectDetailsTab();
});
it('[C263947] Should be able to start a task without form', async () => {
@@ -121,22 +115,16 @@ describe('Start Task - Custom App', () => {
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
await taskPage
.filtersPage()
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
const task = await taskPage.createNewTask();
await task.addName(tasks[2]);
await task.clickStartButton();
await taskPage
.tasksListPage()
.checkContentIsDisplayed(tasks[2]);
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[2]);
await taskPage
.formFields()
.noFormIsDisplayed();
await taskPage.formFields().noFormIsDisplayed();
await expect(await taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
});
@@ -158,8 +146,7 @@ describe('Start Task - Custom App', () => {
it('[C263949] Should be possible to save filled form', async () => {
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToApp(appModel.name)).clickTasksButton();
await taskPage.filtersPage()
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
const task = await taskPage.createNewTask();
@@ -167,33 +154,21 @@ describe('Start Task - Custom App', () => {
await task.addName(tasks[4]);
await task.clickStartButton();
await taskPage
.tasksListPage()
.checkContentIsDisplayed(tasks[4]);
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[4]);
await taskPage.formFields()
.setFieldValue(by.id, formTextField, formFieldValue);
await taskPage.formFields().setFieldValue(by.id, formTextField, formFieldValue);
await taskPage
.formFields()
.refreshForm();
await taskPage.formFields().refreshForm();
await taskPage
.formFields().checkFieldValue(by.id, formTextField, '');
await taskPage.formFields().checkFieldValue(by.id, formTextField, '');
await taskPage
.tasksListPage()
.checkContentIsDisplayed(tasks[4]);
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[4]);
await taskPage
.formFields()
.setFieldValue(by.id, formTextField, formFieldValue);
await taskPage.formFields().setFieldValue(by.id, formTextField, formFieldValue);
await taskPage.formFields().checkFieldValue(by.id, formTextField, formFieldValue);
await taskPage
.formFields()
.saveForm();
await taskPage.formFields().saveForm();
await taskPage.formFields().checkFieldValue(by.id, formTextField, formFieldValue);
});
@@ -207,19 +182,13 @@ describe('Start Task - Custom App', () => {
await task.addAssignee(assigneeUserModel.firstName);
await task.clickStartButton();
await taskPage
.tasksListPage()
.checkTaskListIsLoaded();
await taskPage.tasksListPage().checkTaskListIsLoaded();
await taskPage
.tasksListPage()
.getDataTable().waitForTableBody();
await taskPage.tasksListPage().getDataTable().waitForTableBody();
await taskPage.filtersPage()
.goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
await taskPage.tasksListPage()
.checkContentIsDisplayed(tasks[5]);
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[5]);
await taskPage.tasksListPage().selectRow(tasks[5]);
await taskPage.checkTaskTitle(tasks[5]);
@@ -258,5 +227,4 @@ describe('Start Task - Custom App', () => {
await taskPage.taskDetails().taskInfoDrawerIsDisplayed();
});
});

View File

@@ -79,14 +79,12 @@ describe('Start Task - Task App', () => {
await this.alfrescoJsApi.activiti.taskApi.createNewTask({ name: showHeaderTask });
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp();
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
});
});
it('[C260383] Should be possible to modify a task', async () => {
const task = await taskPage.createNewTask();
@@ -199,7 +197,5 @@ describe('Start Task - Task App', () => {
await startDialog.blur(startDialog.name);
await startDialog.checkValidationErrorIsDisplayed(lengthValidationError);
await startDialog.checkStartButtonIsDisabled();
});
});
});

View File

@@ -237,5 +237,4 @@ describe('Task Assignee', () => {
await taskPage.taskDetails().checkClaimEnabled();
});
});
});

View File

@@ -73,7 +73,6 @@ describe('Attachment list action menu for tasks', () => {
await this.alfrescoJsApi.activiti.modelsApi.deleteModel(appId);
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
it('[C277311] Should be able to View /Download /Remove from Attachment List on an active task', async () => {

View File

@@ -119,5 +119,4 @@ describe('Task Audit', () => {
await taskPage.taskDetails().clickAuditLogButton();
await expect(await FileBrowserUtil.isFileDownloaded(auditLogFile)).toBe(true);
});
});

View File

@@ -78,8 +78,7 @@ describe('Task Details - Form', () => {
otherTask = await this.alfrescoJsApi.activiti.taskApi.getTask(otherEmptyTask.id);
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
afterAll( async () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);

View File

@@ -51,8 +51,7 @@ describe('Task Details - No form', () => {
importedApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
await apps.startProcess(this.alfrescoJsApi, importedApp);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
afterAll( async () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
@@ -71,7 +70,5 @@ describe('Task Details - No form', () => {
await taskPage.taskDetails().checkAttachFormButtonIsNotDisplayed();
await expect(await taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
await expect(await taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage);
});
});
});

View File

@@ -329,5 +329,4 @@ describe('Task Details component', () => {
await taskPage.taskDetails().checkEditPriorityButtonIsNotDisplayed();
await taskPage.taskDetails().checkDueDatePickerButtonIsNotDisplayed();
});
});

View File

@@ -273,7 +273,5 @@ describe('Task', () => {
await taskFiltersDemoPage.myTasksFilter().checkTaskFilterIsDisplayed();
await expect(await taskFiltersDemoPage.myTasksFilter().getTaskFilterIcon()).toEqual('inbox');
});
});
});
});

View File

@@ -106,8 +106,7 @@ describe('Task Filters Sorting', () => {
await expect(await tasksListPage.getDataTable().contentInPosition(1)).toBe(tasks[2].name);
await expect(await tasksListPage.getDataTable().contentInPosition(2)).toBe(tasks[1].name);
await expect(await tasksListPage.getDataTable().contentInPosition(3)).toBe(tasks[0].name);
});
});
it('[C277255] Should display tasks under new filter from oldest to newest when they are completed', async () => {
const newFilter = new UserProcessInstanceFilterRepresentation({

View File

@@ -193,5 +193,4 @@ describe('Task List Pagination', () => {
await paginationPage.checkNextPageButtonIsEnabled();
await paginationPage.checkPreviousPageButtonIsDisabled();
});
});

View File

@@ -57,8 +57,7 @@ describe('Amount Widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async() => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -71,8 +70,7 @@ describe('Amount Widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C274703] Should be possible to set general, advance and visibility properties for Amount Widget', async () => {
await taskPage.formFields().checkWidgetIsHidden(app.FIELD.amount_input_id);

View File

@@ -55,8 +55,7 @@ describe('Attach Folder widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -69,8 +68,7 @@ describe('Attach Folder widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C276745] Should be possible to set visibility properties for Attach Folder Widget', async () => {
await taskPage.formFields().checkWidgetIsHidden(app.FIELD.upload_button_id);

View File

@@ -56,8 +56,7 @@ describe('Checkbox Widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Checkbox Widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C268554] Should be able to set general settings for Checkbox widget ', async () => {
await taskPage.formFields().setValueInInputById(app.FIELD.number_input_id, 2);

View File

@@ -56,8 +56,7 @@ describe('Date and time widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;

View File

@@ -59,15 +59,13 @@ describe('Date widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
afterAll(async () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
describe('Simple App', () => {

View File

@@ -56,8 +56,7 @@ describe('Document Template widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Document Template widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C260406] should check that the template contains assigned file ', async () => {
await expect(await widget.containerWidget().getFieldText(app.form_fields.container_id))

View File

@@ -56,8 +56,7 @@ describe('Dropdown widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;

View File

@@ -160,5 +160,4 @@ describe('Dynamic Table widget ', () => {
await widget.dynamicTable().checkTableRowIsNotVisible(1);
});
});
});

View File

@@ -56,8 +56,7 @@ describe('Header widget', async () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Header widget', async () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C276737] Should be able to set general and visibility properties for Header widget', async () => {
await taskPage.formFields().checkWidgetIsHidden(app.FIELD.header_id);

View File

@@ -56,8 +56,7 @@ describe('Hyperlink widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Hyperlink widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C276728] Should be able to set visibility properties for Hyperlink widget', async () => {
await taskPage.formFields().checkWidgetIsHidden(app.FIELD.hyperlink_id);

View File

@@ -56,8 +56,7 @@ describe('Multi-line Widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Multi-line Widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C268182] Should be able to set general properties for Multi-line Text Widget', async () => {
const label = await widget.multilineTextWidget().getFieldLabel(app.FIELD.multiSimple);

View File

@@ -56,8 +56,7 @@ describe('Number widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Number widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C269111] Should be able to set general properties for Number Widget', async () => {
await expect(await taskPage.formFields().isCompleteFormButtonDisabled()).toBeTruthy();

View File

@@ -56,8 +56,7 @@ describe('People widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,22 +69,9 @@ describe('People widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C260435] Should select user from People Widget', async () => {
await taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id);
await widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
await taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id);
const admin = processUserModel.firstName + ' ' + processUserModel.lastName;
await widget.peopleWidget().insertUser(app.FIELD.widget_id, admin.charAt(0));
await widget.peopleWidget().checkDropDownListIsDisplayed();
await widget.peopleWidget().checkUserIsListed(admin);
await widget.peopleWidget().selectUserFromDropDown(admin);
});
it('[C274707] Should be possible to set visibility properties for People Widget', async () => {
it('[C260435][C274707] Should be possible to set visibility properties for People Widget', async () => {
await taskPage.formFields().checkWidgetIsHidden(app.FIELD.widget_id);
await widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);
await taskPage.formFields().checkWidgetIsVisible(app.FIELD.widget_id);

View File

@@ -57,8 +57,7 @@ describe('Radio Buttons Widget', () => {
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -71,8 +70,7 @@ describe('Radio Buttons Widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C277316] Should display empty radio buttons when no preselection is configured', async () => {
await widget.checkboxWidget().clickCheckboxInput(app.FIELD.checkbox_id);

View File

@@ -56,8 +56,7 @@ describe('Text widget', () => {
});
process = await appsActions.startProcess(alfrescoJsApi, appModel, app.processName);
await loginPage.loginToProcessServicesUsingUserModel(processUserModel);
});
});
beforeEach(async () => {
const urlToNavigateTo = `${browser.params.testConfig.adf.url}/activiti/apps/${deployedApp.id}/tasks/`;
@@ -70,8 +69,7 @@ describe('Text widget', () => {
await alfrescoJsApi.activiti.processApi.deleteProcessInstance(process.id);
await alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(processUserModel.tenantId);
});
});
it('[C268157] Should be able to set general properties for Text widget', async () => {
const label = await widget.textWidget().getFieldLabel(app.FIELD.simpleText);