mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Use hash strategy in demo shell as the other apps (#6402)
* hash startegy * use hash in e2e * trigger build * fix * fix * remove children router overwrite crazynes * Update login.module.ts * revert not needed changes * some fixes * fix * remove fdescribe * fix * fix * Update share-file.e2e.ts * Update lock-file.e2e.ts * Update share-file.e2e.ts * some fix * some other fixes * username as id * fix after rebase * username * fix usernamee * Fix the errorComponent * Attempt to fix unit test - to check * * Fixed circular dependency error while building adf-testing package * * Fixed failing UT * fix * use username * some fixes * some fix * fix Co-authored-by: Maurizio Vitale <maurizio.vitale@alfresco.com> Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local> Co-authored-by: sivakumar414ram <siva.kumar@muraai.com>
This commit is contained in:
@@ -31,8 +31,8 @@ describe('About Process Services', () => {
|
||||
beforeAll(async() => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
await apiService.login(user.email, user.password);
|
||||
await loginPage.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
await navigationBarPage.clickAboutButton();
|
||||
});
|
||||
|
||||
|
@@ -45,12 +45,12 @@ describe('Modify applications', () => {
|
||||
|
||||
const user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
firstApp = await applicationService.importPublishDeployApp(app.file_path);
|
||||
appVersionToBeDeleted = await applicationService.importPublishDeployApp(appToBeDeleted.file_path);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -93,7 +93,7 @@ describe('Attach File - Content service', () => {
|
||||
host: browser.params.testConfig.adf_external_acs.host
|
||||
});
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await uploadActions.uploadFile(pdfFileTwo.location, pdfFileTwo.name, '-my-');
|
||||
await applicationService.importPublishDeployApp(app.file_path);
|
||||
|
||||
@@ -107,7 +107,7 @@ describe('Attach File - Content service', () => {
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
});
|
||||
@@ -153,7 +153,7 @@ describe('Attach File - Content service', () => {
|
||||
|
||||
await externalNodeSelector.waitForLogInDialog();
|
||||
await expect(await externalNodeSelector.getTitle()).toEqual(`Sign into '${browser.params.testConfig.adf_external_acs.host}'`);
|
||||
await externalNodeSelector.login(user.email, user.password);
|
||||
await externalNodeSelector.login(user.username, user.password);
|
||||
|
||||
await externalNodeSelector.checkDialogIsDisplayed();
|
||||
await searchService.isSearchable(externalFile);
|
||||
@@ -185,7 +185,7 @@ describe('Attach File - Content service', () => {
|
||||
await widget.attachFileWidget().selectUploadSource(csIntegrations[1]);
|
||||
|
||||
await externalNodeSelector.waitForLogInDialog();
|
||||
await externalNodeSelector.login(user.email, user.password);
|
||||
await externalNodeSelector.login(user.username, user.password);
|
||||
|
||||
await searchService.isSearchable(externalFile);
|
||||
await externalNodeSelector.searchAndSelectResult(externalFile, externalFile);
|
||||
|
@@ -54,9 +54,9 @@ describe('Start Task - Task App', () => {
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await applicationService.importPublishDeployApp(app.file_path);
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -63,11 +63,11 @@ describe('Attach Folder', () => {
|
||||
name: 'adf dev',
|
||||
host: browser.params.testConfig.appConfig.ecmHost
|
||||
});
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await applicationService.importPublishDeployApp(app.file_path);
|
||||
await new UploadActions(apiService).createFolder(folderName, '-my-');
|
||||
await searchService.isSearchable(folderName);
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -56,13 +56,13 @@ describe('Attach Form Component', () => {
|
||||
|
||||
tenantId = user.tenantId;
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
appModel = await applicationService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await apiService.getInstance().activiti.taskApi.createNewTask(new TaskRepresentation({ name: testNames.taskName }));
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -54,7 +54,7 @@ describe('Checklist component', () => {
|
||||
const pathFile = path.join(browser.params.testConfig.main.rootPath + app.file_location);
|
||||
const file = fs.createReadStream(pathFile);
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await apiService.getInstance().activiti.appsApi.importAppDefinition(file);
|
||||
|
||||
@@ -62,7 +62,7 @@ describe('Checklist component', () => {
|
||||
await apiService.getInstance().activiti.taskApi.createNewTask(new TaskRepresentation({ name: tasks[i] }));
|
||||
}
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -38,20 +38,20 @@ describe('Comment component for Processes', () => {
|
||||
const processName = 'Comment APS';
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
await apiService.loginWithProfile('admin');
|
||||
|
||||
user = await usersActions.createUser();
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
|
||||
const processWithComment = await new ProcessUtil(apiService).startProcessOfApp(importedApp.name, processName);
|
||||
processInstanceId = processWithComment.id;
|
||||
const processWithComment = await new ProcessUtil(apiService).startProcessOfApp(importedApp.name, processName);
|
||||
processInstanceId = processWithComment.id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
});
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.getInstance().activiti.modelsApi.deleteModel(appId);
|
||||
@@ -71,7 +71,7 @@ describe('Comment component for Processes', () => {
|
||||
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
|
||||
await expect(await commentsPage.getTotalNumberOfComments()).toEqual('Comments (' + addedComment.total + ')');
|
||||
await commentsPage.getTotalNumberOfComments('Comments (' + addedComment.total + ')');
|
||||
await expect(await commentsPage.getMessage(0)).toEqual(addedComment.data[0].message);
|
||||
await expect(await commentsPage.getUserName(0)).toEqual(addedComment.data[0].createdBy.firstName + ' ' + addedComment.data[0].createdBy.lastName);
|
||||
await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
@@ -109,7 +109,7 @@ describe('Comment component for Processes', () => {
|
||||
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
|
||||
await expect(await commentsPage.getTotalNumberOfComments()).toEqual('Comments (' + addedTaskComment.total + ')');
|
||||
await commentsPage.getTotalNumberOfComments('Comments (' + addedTaskComment.total + ')');
|
||||
await expect(await commentsPage.getMessage(0)).toEqual(addedTaskComment.data[0].message);
|
||||
await expect(await commentsPage.getUserName(0)).toEqual(addedTaskComment.data[0].createdBy.firstName + ' ' + addedTaskComment.data[0].createdBy.lastName);
|
||||
await expect(await commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
|
@@ -50,12 +50,12 @@ describe('Comment component for Processes', () => {
|
||||
user = await usersActions.createUser();
|
||||
secondUser = await usersActions.createUser(new UserModel({ tenantId: user.tenantId }));
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
const importedApp = await new ApplicationsUtil(apiService).importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -105,7 +105,7 @@ describe('Comment component for Processes', () => {
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
|
||||
await expect(await commentsPage.getTotalNumberOfComments()).toEqual('Comments (' + totalCommentsLatest.total + ')');
|
||||
await commentsPage.getTotalNumberOfComments('Comments (' + totalCommentsLatest.total + ')');
|
||||
|
||||
await expect(await commentsPage.getMessage(0)).toEqual(totalCommentsLatest.data[0].message);
|
||||
await expect(await commentsPage.getMessage(1)).toEqual(totalCommentsLatest.data[1].message);
|
||||
@@ -117,7 +117,7 @@ describe('Comment component for Processes', () => {
|
||||
await expect(await commentsPage.getTime(1)).toMatch(/(ago|few)/);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(secondUser.email, secondUser.password);
|
||||
await loginPage.login(secondUser.username, secondUser.password);
|
||||
|
||||
await apiService.getInstance().activiti.taskApi.addTaskComment(thirdTaskComment, newTaskId);
|
||||
|
||||
@@ -133,7 +133,7 @@ describe('Comment component for Processes', () => {
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
await commentsPage.checkUserIconIsDisplayed();
|
||||
|
||||
await expect(await commentsPage.getTotalNumberOfComments()).toEqual('Comments (' + totalComments.total + ')');
|
||||
await commentsPage.getTotalNumberOfComments('Comments (' + totalComments.total + ')');
|
||||
|
||||
await expect(await commentsPage.getMessage(0)).toEqual(totalComments.data[0].message);
|
||||
await expect(await commentsPage.getMessage(1)).toEqual(totalComments.data[1].message);
|
||||
|
@@ -56,12 +56,12 @@ describe('Sorting for process filters', () => {
|
||||
user = await usersActions.createUser();
|
||||
tenantId = user.tenantId;
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
|
@@ -52,9 +52,9 @@ describe('New Process Filters', () => {
|
||||
|
||||
tenantId = user.tenantId;
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -85,7 +85,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
@@ -117,7 +117,7 @@ describe('Start Task - Custom App', () => {
|
||||
'dueDate': currentDateStandardFormat
|
||||
}));
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
describe('', () => {
|
||||
|
@@ -68,15 +68,15 @@ describe('Dynamic Table', () => {
|
||||
const rowPosition = 0;
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await apiService.getInstance().activiti.modelsApi.deleteModel(appId);
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
});
|
||||
@@ -130,16 +130,16 @@ describe('Dynamic Table', () => {
|
||||
const dropdown = widget.dropdown();
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await apiService.getInstance().activiti.modelsApi.deleteModel(appId);
|
||||
});
|
||||
|
||||
|
@@ -48,12 +48,12 @@ describe('Empty Process List Test', () => {
|
||||
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
await applicationsService.importPublishDeployApp(appWithProcess.file_path);
|
||||
await applicationsService.importPublishDeployApp(simpleAppWithUserForm.file_path);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
it('[C260494] Should add process to list when a process is created', async () => {
|
||||
|
@@ -53,9 +53,9 @@ describe('Form Component', () => {
|
||||
|
||||
tenantId = user.tenantId;
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
|
||||
await navigationBarPage.navigateToProcessServicesFormPage();
|
||||
});
|
||||
|
@@ -53,13 +53,13 @@ describe('Form widgets - People ', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -55,11 +55,11 @@ describe('Form widgets', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
appModelWidget = await applicationsService.importPublishDeployApp(appWidget.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await (await new NavigationBarPage().navigateToProcessServicesPage()).goToApp(appModelWidget.name);
|
||||
|
||||
@@ -203,12 +203,12 @@ describe('Form widgets', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
const processUtil = new ProcessUtil(apiService);
|
||||
process = await processUtil.startProcessOfApp(appModel.name);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -82,10 +82,10 @@ describe('Info Drawer', () => {
|
||||
processUserModel = await usersActions.createUser(new UserModel({ tenantId: assigneeUserModel.tenantId }));
|
||||
processUserModelFullName = processUserModel.firstName + ' ' + processUserModel.lastName;
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appCreated = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -55,7 +55,7 @@ describe('Process List - Pagination when adding processes', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
resultApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
@@ -63,7 +63,7 @@ describe('Process List - Pagination when adding processes', () => {
|
||||
await processUtil.startProcessOfApp(resultApp.name);
|
||||
}
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await (await (await new NavigationBarPage().navigateToProcessServicesPage()).goToTaskApp()).clickProcessButton();
|
||||
});
|
||||
|
@@ -57,7 +57,7 @@ describe('Items per page set to 15 and adding of tasks', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
resultApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
@@ -66,7 +66,7 @@ describe('Items per page set to 15 and adding of tasks', () => {
|
||||
await processUtil.startProcessOfApp(resultApp.name);
|
||||
}
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
it('[C260306] Items per page set to 15 and adding of tasks', async () => {
|
||||
|
@@ -52,7 +52,7 @@ describe('People component', () => {
|
||||
const pathFile = path.join(browser.params.testConfig.main.rootPath + app.file_location);
|
||||
const file = fs.createReadStream(pathFile);
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await apiService.getInstance().activiti.appsApi.importAppDefinition(file);
|
||||
|
||||
@@ -64,7 +64,7 @@ describe('People component', () => {
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await (await processServices.goToTaskApp()).clickTasksButton();
|
||||
@@ -159,7 +159,7 @@ describe('People component', () => {
|
||||
.toEqual(assigneeUserModel.email);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(assigneeUserModel.email, assigneeUserModel.password);
|
||||
await loginPage.login(assigneeUserModel.username, assigneeUserModel.password);
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[1]);
|
||||
@@ -218,7 +218,7 @@ describe('People component', () => {
|
||||
.toEqual(assigneeUserModel.email);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(assigneeUserModel.email, assigneeUserModel.password);
|
||||
await loginPage.login(assigneeUserModel.username, assigneeUserModel.password);
|
||||
await (await (await navigationBarPage.navigateToProcessServicesPage()).goToTaskApp()).clickTasksButton();
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
await taskPage.tasksListPage().checkContentIsDisplayed(tasks[3]);
|
||||
|
@@ -69,7 +69,7 @@ describe('Attachment list action menu for processes', () => {
|
||||
|
||||
tenantId = user.tenantId;
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = importedApp.id;
|
||||
@@ -81,7 +81,7 @@ describe('Attachment list action menu for processes', () => {
|
||||
await processUtil.startProcessOfApp(importedApp.name, processName.emptyList);
|
||||
await processUtil.startProcessOfApp(importedApp.name, processName.dragDrop);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -71,9 +71,9 @@ describe('Process Filters Test', () => {
|
||||
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -47,12 +47,12 @@ describe('Process Instance Details', () => {
|
||||
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
const processModel = await new ProcessUtil(apiService).startProcessOfApp(appModel.name);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
|
@@ -62,7 +62,7 @@ describe('Process List Test', () => {
|
||||
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
appDateModel = await applicationsUtil.importPublishDeployApp(appWithDateField.file_path);
|
||||
|
||||
@@ -84,7 +84,7 @@ describe('Process List Test', () => {
|
||||
await apiService.getInstance().activiti.taskApi.completeTaskForm(procWithDateTaskId.id, { values: { label: null } });
|
||||
await apiService.getInstance().activiti.taskFormsApi.completeTaskForm(procWithUserWidgetTaskId.id, { values: { label: null } });
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -67,16 +67,16 @@ describe('Process List - Pagination', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
deployedTestApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
describe('With processes Pagination', () => {
|
||||
beforeAll(async () => {
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
for (let i = 0; i < nrOfProcesses; i++) {
|
||||
await new ProcessUtil(apiService).startProcessOfApp(deployedTestApp.name);
|
||||
|
@@ -60,7 +60,7 @@ describe('Task List Pagination - Sorting', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
@@ -68,7 +68,7 @@ describe('Task List Pagination - Sorting', () => {
|
||||
await apiService.getInstance().activiti.taskApi.createNewTask(new TaskRepresentation({ name: taskNames[i] }));
|
||||
}
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
it('[C260308] Should be possible to sort tasks by name', async () => {
|
||||
|
@@ -49,11 +49,11 @@ describe('Start Task - Task App', () => {
|
||||
const pathFile = path.join(browser.params.testConfig.main.rootPath + app.file_location);
|
||||
const file = fs.createReadStream(pathFile);
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await apiService.getInstance().activiti.appsApi.importAppDefinition(file);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -89,7 +89,7 @@ describe('Start Process Component', () => {
|
||||
procUserModel = await usersActions.createUser();
|
||||
secondProcUserModel = await usersActions.createUser(new UserModel({ tenantId: procUserModel.tenantId }));
|
||||
|
||||
await apiServiceUserTwo.login(secondProcUserModel.email, secondProcUserModel.password);
|
||||
await apiServiceUserTwo.login(secondProcUserModel.username, secondProcUserModel.password);
|
||||
|
||||
const applicationsService = new ApplicationsUtil(apiServiceUserTwo);
|
||||
appCreated = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
@@ -106,7 +106,7 @@ describe('Start Process Component', () => {
|
||||
|
||||
describe(' Once logged with user without apps', () => {
|
||||
beforeEach(async () => {
|
||||
await loginPage.login(procUserModel.email, procUserModel.password);
|
||||
await loginPage.login(procUserModel.username, procUserModel.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
});
|
||||
@@ -127,7 +127,7 @@ describe('Start Process Component', () => {
|
||||
describe(' Once logged with user with app', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await loginPage.login(secondProcUserModel.email, secondProcUserModel.password);
|
||||
await loginPage.login(secondProcUserModel.username, secondProcUserModel.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
});
|
||||
@@ -493,7 +493,7 @@ describe('Start Process Component', () => {
|
||||
|
||||
const alfrescoJsBPMAdminUser = new ApiService({ hostBpm: browser.params.testConfig.appConfig.bpmHost });
|
||||
|
||||
await alfrescoJsBPMAdminUser.login(processUserModel.email, processUserModel.password);
|
||||
await alfrescoJsBPMAdminUser.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
const applicationsService = new ApplicationsUtil(alfrescoJsBPMAdminUser);
|
||||
|
||||
@@ -505,7 +505,7 @@ describe('Start Process Component', () => {
|
||||
|
||||
await LocalStorageUtil.setStorageItem('providers', 'ALL');
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await contentServicesPage.goToDocumentList();
|
||||
await contentServicesPage.uploadFile(imageUploaded.location);
|
||||
|
@@ -57,11 +57,11 @@ describe('Start Task - Custom App', () => {
|
||||
assigneeUserModel = await usersActions.createUser();
|
||||
processUserModel = await usersActions.createUser(new UserModel({ tenantId: assigneeUserModel.tenantId }));
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
it('[C263942] Should be possible to modify a task', async () => {
|
||||
|
@@ -65,13 +65,13 @@ describe('Start Task - Task App', () => {
|
||||
const pathFile = path.join(browser.params.testConfig.main.rootPath + app.file_location);
|
||||
const file = fs.createReadStream(pathFile);
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await apiService.getInstance().activiti.appsApi.importAppDefinition(file);
|
||||
|
||||
await apiService.getInstance().activiti.taskApi.createNewTask(new TaskRepresentation({ name: showHeaderTask }));
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -56,10 +56,10 @@ describe('Stencil', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
await applicationsService.importPublishDeployApp(app.file_path);
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -73,10 +73,10 @@ describe('Task Assignee', () => {
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -157,7 +157,7 @@ describe('Task Assignee', () => {
|
||||
} catch (e) {
|
||||
}
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const appModel = await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
|
||||
await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processNames[1]);
|
||||
@@ -169,7 +169,7 @@ describe('Task Assignee', () => {
|
||||
});
|
||||
|
||||
it('[C216430] Start Task - Claim and Requeue a task', async () => {
|
||||
await loginPage.login(candidate1.email, candidate1.password);
|
||||
await loginPage.login(candidate1.username, candidate1.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp('Task App');
|
||||
@@ -216,7 +216,7 @@ describe('Task Assignee', () => {
|
||||
await taskPage.tasksListPage().checkContentIsNotDisplayed(app.userTasks.candidateTask);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(candidate2.email, candidate2.password);
|
||||
await loginPage.login(candidate2.username, candidate2.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp('Task App');
|
||||
@@ -228,7 +228,7 @@ describe('Task Assignee', () => {
|
||||
await taskPage.tasksListPage().checkContentIsNotDisplayed(app.userTasks.candidateTask);
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(candidate1.email, candidate1.password);
|
||||
await loginPage.login(candidate1.username, candidate1.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp('Task App');
|
||||
@@ -257,7 +257,7 @@ describe('Task Assignee', () => {
|
||||
await taskPage.taskDetails().checkClaimEnabled();
|
||||
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
await loginPage.login(candidate2.email, candidate2.password);
|
||||
await loginPage.login(candidate2.username, candidate2.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp('Task App');
|
||||
|
@@ -65,12 +65,12 @@ describe('Attachment list action menu for tasks', () => {
|
||||
const user = await usersActions.createUser();
|
||||
tenantId = user.tenantId;
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
const { id } = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -44,12 +44,12 @@ describe('Task Audit', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
await apiService.getInstance().activiti.taskApi.createNewTask(new TaskRepresentation({ name: taskTaskApp }));
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll( async () => {
|
||||
|
@@ -73,7 +73,7 @@ describe('Task Details - Form', () => {
|
||||
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
attachedForm = await apiService.getInstance().activiti.modelsApi.createModel(attachedFormModel);
|
||||
newForm = await apiService.getInstance().activiti.modelsApi.createModel(newFormModel);
|
||||
@@ -84,7 +84,7 @@ describe('Task Details - Form', () => {
|
||||
await apiService.getInstance().activiti.taskApi.attachForm(otherEmptyTask.id, { 'formId': otherAttachedForm.id });
|
||||
otherTask = await apiService.getInstance().activiti.taskApi.getTask(otherEmptyTask.id);
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -40,11 +40,11 @@ describe('Task Details - No form', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
await new ProcessUtil(apiService).startProcessOfApp(importedApp.name);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll( async () => {
|
||||
|
@@ -62,10 +62,10 @@ describe('Task Details component', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
appModel = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -50,12 +50,12 @@ describe('Task', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
const { id } = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
appId = id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp(app.title);
|
||||
@@ -189,13 +189,13 @@ describe('Task', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
appId = appDefinitions.data.find((currentApp) => currentApp.modelId === importedApp.id).id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -55,13 +55,13 @@ describe('Task Filters Sorting', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
const importedApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
appId = appDefinitions.data.find((currentApp) => currentApp.modelId === importedApp.id).id;
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
await navigationBarPage.navigateToProcessServicesPage();
|
||||
await processServicesPage.checkApsContainer();
|
||||
await processServicesPage.goToApp(app.title);
|
||||
|
@@ -61,7 +61,7 @@ describe('Task List Pagination', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
const applicationsService = new ApplicationsUtil(apiService);
|
||||
const resultApp = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
@@ -69,7 +69,7 @@ describe('Task List Pagination', () => {
|
||||
await new ProcessUtil(apiService).startProcessOfApp(resultApp.name);
|
||||
}
|
||||
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll( async () => {
|
||||
|
@@ -42,7 +42,7 @@ describe('Amount Widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -50,7 +50,7 @@ describe('Amount Widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await processUtil.startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async() => {
|
||||
|
@@ -58,10 +58,10 @@ describe('Attach widget - File', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
|
||||
await applicationsService.importPublishDeployApp(app.file_path);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -50,7 +50,7 @@ describe('Attach Folder widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -58,7 +58,7 @@ describe('Attach Folder widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await processUtil.startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Checkbox Widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Checkbox Widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Date and time widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Date and time widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -53,7 +53,7 @@ describe('Date widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -61,7 +61,7 @@ describe('Date widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Document Template widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp( app.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Document Template widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessOfApp(appModel.name);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -48,7 +48,7 @@ describe('Dropdown widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -56,7 +56,7 @@ describe('Dropdown widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -52,13 +52,13 @@ describe('Dynamic Table widget ', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => currentApp.modelId === appModel.id);
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
@@ -101,13 +101,13 @@ describe('Dynamic Table widget ', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
deployedApp = appDefinitions.data.find((currentApp) => currentApp.modelId === appModel.id);
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -156,7 +156,7 @@ describe('Dynamic Table widget ', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
const application = await applicationsService.importPublishDeployApp(app.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -171,7 +171,7 @@ describe('Dynamic Table widget ', () => {
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
const urlToNavigateTo = `${browser.baseUrl}/activiti/apps/${deployedApp.id}/tasks`;
|
||||
await BrowserActions.getUrl(urlToNavigateTo);
|
||||
await taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
@@ -49,7 +49,7 @@ describe('Header widget', async () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Header widget', async () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Hyperlink widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Hyperlink widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -48,7 +48,7 @@ describe('Multi-line Widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -56,7 +56,7 @@ describe('Multi-line Widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Number widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Number widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -41,11 +41,11 @@ describe('People and Group widget', () => {
|
||||
|
||||
user = await usersActions.createUser();
|
||||
await createGroupAndUsers(user.tenantId);
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
|
||||
await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('People widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('People widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessOfApp(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Radio Buttons Widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -58,7 +58,7 @@ describe('Radio Buttons Widget', () => {
|
||||
});
|
||||
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -49,7 +49,7 @@ describe('Text widget', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -57,7 +57,7 @@ describe('Text widget', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
@@ -40,9 +40,9 @@ describe('Typeahead widget', () => {
|
||||
await apiService.loginWithProfile('admin');
|
||||
user = await usersActions.createUser();
|
||||
|
||||
await apiService.login(user.email, user.password);
|
||||
await apiService.login(user.username, user.password);
|
||||
await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
await loginPage.login(user.email, user.password);
|
||||
await loginPage.login(user.username, user.password);
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -71,7 +71,7 @@ describe('Process-Services - Visibility conditions', () => {
|
||||
|
||||
processUserModel = await usersActions.createUser();
|
||||
|
||||
await apiService.login(processUserModel.email, processUserModel.password);
|
||||
await apiService.login(processUserModel.username, processUserModel.password);
|
||||
appModel = await applicationsService.importPublishDeployApp(browser.params.resources.Files.WIDGET_CHECK_APP.file_path);
|
||||
|
||||
const appDefinitions = await apiService.getInstance().activiti.appsApi.getAppDefinitions();
|
||||
@@ -79,7 +79,7 @@ describe('Process-Services - Visibility conditions', () => {
|
||||
return currentApp.modelId === appModel.id;
|
||||
});
|
||||
process = await new ProcessUtil(apiService).startProcessByDefinitionName(appModel.name, app.processName);
|
||||
await loginPage.login(processUserModel.email, processUserModel.password);
|
||||
await loginPage.login(processUserModel.username, processUserModel.password);
|
||||
});
|
||||
|
||||
beforeEach(async () => {
|
||||
|
Reference in New Issue
Block a user