mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Disable control flow e2e ADF (#4954)
* update project script possible different JS-API * first commit no controll flow * second commit no controll flow * third commit no controll flow * 4 commit no controll flow * 5 commit no controll flow * 6 commit no controll flow * 7 commit no controll flow * 8 commit no controll flow * 9 commit no controll flow * 10 commit no controll flow * 11 commit no controll flow * 12 commit no controll flow * 13 commit no controll flow * 14 commit no controll flow * 15 commit no controll flow * 16 commit no controll flow * 17 commit no controll flow * 18 commit no controll flow * 19 commit no controll flow * 20 commit no controll flow * remove wdpromise, protractor promise and deferred promises * - fixed some incorrect “expect” calls - fixed some matchers - removed “return this;” when not needed - added a few more await-s * forgot a file * fix some failing tests * replaced driver calls with browser calls and enabled back waitForAngular * fix rightClick methods and hopefully some tests * fix settings-component * some more fixes for core and content tests * try to fix some more issues * linting * revert some changes, allowing download on headless chrome won’t work with multiple browser instances * fixes for Search tests * try to remove some wait calls * fix build * increase allScriptsTimeout and try another protractor and web driver version * improve navigation methods * some fixes for notification history and login sso * forgot a space * fix packages and enable some screenshots * navigation bar fixes * fix some test * some fixes for notification history and navigation bar use correct visibility method in attachFileWidget test * fix searching and another fix for navigation * try solve sso login * some more fixes * refactor async forEach into for..of * try fix for search tests * resolve rebabse problems * remove install * fix lint * fix core e2e * fix core e2e * fix core e2e * fix ps tests * fix some tests * fix core e2e * fix core e2e * fix core * fix some issues PS * fix core * fix core * fix some ps test * fix rebase issues * remove save * fix url regressed after rebase * fix url regressed after rebase * fix ps and core * fix lint * more parallel e2e ps * fix some ps cloud test * some cloud fix * fix lint * fix some test * remove files to be ignored * out-tsc * improve one cs test * fix candidate base app * fix ps test * remove click function * clean methods alrady present in browser action * try ugly wait * move wait * remove duplicate call * remove underscore * fix after review * fix imports * minor cosmetic fixes * fix comments test
This commit is contained in:
@@ -38,7 +38,7 @@ describe('Task Details - Form', () => {
|
||||
const filtersPage = new FiltersPage();
|
||||
let task, otherTask, user, newForm, attachedForm, otherAttachedForm;
|
||||
|
||||
beforeAll(async (done) => {
|
||||
beforeAll(async () => {
|
||||
const users = new UsersActions();
|
||||
const attachedFormModel = {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
@@ -53,7 +53,12 @@ describe('Task Details - Form', () => {
|
||||
'modelType': 2,
|
||||
'stencilSet': 0
|
||||
};
|
||||
const newFormModel = { 'name': StringUtil.generateRandomString(), 'description': '', 'modelType': 2, 'stencilSet': 0 };
|
||||
const newFormModel = {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'description': '',
|
||||
'modelType': 2,
|
||||
'stencilSet': 0
|
||||
};
|
||||
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'BPM',
|
||||
@@ -80,10 +85,9 @@ describe('Task Details - Form', () => {
|
||||
|
||||
await loginPage.loginToProcessServicesUsingUserModel(user);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
beforeEach(async (done) => {
|
||||
beforeEach(async () => {
|
||||
const taskModel = new StandaloneTask();
|
||||
|
||||
const emptyTask = await this.alfrescoJsApi.activiti.taskApi.createNewTask(taskModel);
|
||||
@@ -92,64 +96,63 @@ describe('Task Details - Form', () => {
|
||||
|
||||
task = await this.alfrescoJsApi.activiti.taskApi.getTask(emptyTask.id);
|
||||
|
||||
new NavigationBarPage().navigateToProcessServicesPage().goToTaskApp();
|
||||
tasksListPage.checkTaskListIsLoaded();
|
||||
filtersPage.goToFilter('Involved Tasks');
|
||||
tasksListPage.checkTaskListIsLoaded();
|
||||
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp();
|
||||
await tasksListPage.checkTaskListIsLoaded();
|
||||
await filtersPage.goToFilter('Involved Tasks');
|
||||
await tasksListPage.checkTaskListIsLoaded();
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C280018] Should be able to change the form in a task', () => {
|
||||
tasksListPage.selectRow(task.name);
|
||||
taskDetailsPage.clickForm();
|
||||
it('[C280018] Should be able to change the form in a task', async () => {
|
||||
await tasksListPage.selectRow(task.name);
|
||||
await taskDetailsPage.clickForm();
|
||||
|
||||
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
||||
taskDetailsPage.checkAttachFormButtonIsDisabled();
|
||||
await taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
||||
await taskDetailsPage.checkAttachFormButtonIsDisabled();
|
||||
|
||||
taskDetailsPage.clickAttachFormDropdown();
|
||||
await taskDetailsPage.clickAttachFormDropdown();
|
||||
|
||||
taskDetailsPage.selectAttachFormOption(newForm.name);
|
||||
taskDetailsPage.checkSelectedForm(newForm.name);
|
||||
taskDetailsPage.checkAttachFormButtonIsEnabled();
|
||||
await taskDetailsPage.selectAttachFormOption(newForm.name);
|
||||
await taskDetailsPage.checkSelectedForm(newForm.name);
|
||||
await taskDetailsPage.checkAttachFormButtonIsEnabled();
|
||||
|
||||
taskDetailsPage.checkCancelAttachFormIsDisplayed();
|
||||
taskDetailsPage.clickCancelAttachForm();
|
||||
await taskDetailsPage.checkCancelAttachFormIsDisplayed();
|
||||
await taskDetailsPage.clickCancelAttachForm();
|
||||
|
||||
taskDetailsPage.checkFormIsAttached(attachedForm.name);
|
||||
await taskDetailsPage.checkFormIsAttached(attachedForm.name);
|
||||
|
||||
taskDetailsPage.clickForm();
|
||||
await taskDetailsPage.clickForm();
|
||||
|
||||
taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
||||
taskDetailsPage.clickAttachFormDropdown();
|
||||
await taskDetailsPage.checkAttachFormDropdownIsDisplayed();
|
||||
await taskDetailsPage.clickAttachFormDropdown();
|
||||
|
||||
taskDetailsPage.selectAttachFormOption(newForm.name);
|
||||
await taskDetailsPage.selectAttachFormOption(newForm.name);
|
||||
|
||||
taskDetailsPage.checkAttachFormButtonIsDisplayed();
|
||||
taskDetailsPage.clickAttachFormButton();
|
||||
await taskDetailsPage.checkAttachFormButtonIsDisplayed();
|
||||
await taskDetailsPage.clickAttachFormButton();
|
||||
|
||||
taskDetailsPage.checkFormIsAttached(newForm.name);
|
||||
await taskDetailsPage.checkFormIsAttached(newForm.name);
|
||||
});
|
||||
|
||||
it('[C280019] Should be able to remove the form form a task', () => {
|
||||
tasksListPage.selectRow(task.name);
|
||||
taskDetailsPage.clickForm();
|
||||
it('[C280019] Should be able to remove the form form a task', async () => {
|
||||
await tasksListPage.selectRow(task.name);
|
||||
await taskDetailsPage.clickForm();
|
||||
|
||||
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
||||
taskDetailsPage.clickRemoveAttachForm();
|
||||
await taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
||||
await taskDetailsPage.clickRemoveAttachForm();
|
||||
|
||||
taskDetailsPage.checkFormIsAttached('No form');
|
||||
await taskDetailsPage.checkFormIsAttached('No form');
|
||||
|
||||
expect(taskDetailsPage.getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
|
||||
await expect(await taskDetailsPage.getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
|
||||
});
|
||||
|
||||
it('[C280557] Should display task details when selecting another task while the Attach Form dialog is displayed', () => {
|
||||
tasksListPage.selectRow(task.name);
|
||||
taskDetailsPage.clickForm();
|
||||
it('[C280557] Should display task details when selecting another task while the Attach Form dialog is displayed', async () => {
|
||||
await tasksListPage.selectRow(task.name);
|
||||
await taskDetailsPage.clickForm();
|
||||
|
||||
taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
||||
await taskDetailsPage.checkRemoveAttachFormIsDisplayed();
|
||||
|
||||
tasksListPage.selectRow(otherTask.name);
|
||||
taskDetailsPage.checkFormIsAttached(otherAttachedForm.name);
|
||||
await tasksListPage.selectRow(otherTask.name);
|
||||
await taskDetailsPage.checkFormIsAttached(otherAttachedForm.name);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user