mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-5041] update license headers to reflect hyland copyright guidelines (#8472)
* ACS-5041 Changed json to js * ACS-5041 Corrected paths * ACS-5041 Changed json to js * ACS-5041 Updated eslintrc * ACS-5041 Small correction * ACS-5041 Small correction * ACS-5041 Updated license headers * ACS-5041 Updated license headers * ACS-5041 Replaced references to alfresco * ACS-5041 Added Hyland to known words * ACS-5041 Fixed coverage issue * ACS-5041 Fixed duplication issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed duplications issue * ACS-5041 Fixed test * ACS-5041 Fixed test * ACS-5041 Reverted one change * ACS-5041 Added missing license to files after rebase
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -77,8 +77,8 @@ describe('Process list cloud', () => {
|
||||
const processListCloudConfigFile = processListCloudConfiguration.getConfiguration();
|
||||
const editProcessFilterConfigFile = editProcessFilterConfiguration.getConfiguration();
|
||||
|
||||
let completedProcess, runningProcessInstance, switchProcessInstance, noOfApps, testUser, groupInfo,
|
||||
anotherProcessInstance;
|
||||
let completedProcess; let runningProcessInstance; let switchProcessInstance; let noOfApps; let testUser; let groupInfo;
|
||||
let anotherProcessInstance;
|
||||
const candidateBaseApp = browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.name;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -99,23 +99,23 @@ describe('Process list cloud', () => {
|
||||
await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp);
|
||||
|
||||
runningProcessInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
anotherProcessInstance = await processInstancesService.createProcessInstance(anotherProcessDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
switchProcessInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
completedProcess = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
const task = await queryService.getProcessInstanceTasks(completedProcess.entry.id, candidateBaseApp);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -74,12 +74,19 @@ describe('Process filters cloud', () => {
|
||||
const processListCloudConfigFile = processListCloudConfiguration.getConfiguration();
|
||||
const editProcessFilterConfigFile = editProcessFilterConfiguration.getConfiguration();
|
||||
|
||||
let completedProcess, runningProcessInstance, suspendProcessInstance, testUser, anotherUser, groupInfo,
|
||||
anotherProcessInstance, processDefinition, anotherProcessDefinition,
|
||||
differentAppUserProcessInstance, simpleAppProcessDefinition;
|
||||
let completedProcess; let runningProcessInstance; let suspendProcessInstance; let testUser; let anotherUser; let groupInfo;
|
||||
let anotherProcessInstance; let processDefinition; let anotherProcessDefinition;
|
||||
let differentAppUserProcessInstance; let simpleAppProcessDefinition;
|
||||
const candidateBaseApp = browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.name;
|
||||
const simpleApp = browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.name;
|
||||
|
||||
const setProcessName = async (propertyValue: string, propertyName = 'lastModifiedTo') => {
|
||||
await editProcessFilter.openFilter();
|
||||
await editProcessFilter.setProperty(propertyName, propertyValue);
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await editProcessFilter.setProcessName(runningProcessInstance.entry.name);
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
|
||||
@@ -95,8 +102,8 @@ describe('Process filters cloud', () => {
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.SIMPLE_APP.processes.simpleProcess, simpleApp);
|
||||
|
||||
differentAppUserProcessInstance = await processInstancesService.createProcessInstance(simpleAppProcessDefinition.entry.key, simpleApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
await apiService.login(testUser.username, testUser.password);
|
||||
@@ -107,24 +114,24 @@ describe('Process filters cloud', () => {
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.processes.anotherCandidateGroupProcess, candidateBaseApp);
|
||||
|
||||
runningProcessInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
anotherProcessInstance = await processInstancesService.createProcessInstance(anotherProcessDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
suspendProcessInstance = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
await processInstancesService.suspendProcessInstance(suspendProcessInstance.entry.id, candidateBaseApp);
|
||||
|
||||
completedProcess = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
const task = await queryService.getProcessInstanceTasks(completedProcess.entry.id, candidateBaseApp);
|
||||
@@ -308,18 +315,12 @@ describe('Process filters cloud', () => {
|
||||
});
|
||||
|
||||
it('[C311318] Should be able to filter by lastModifiedFrom - displays record when date = currentDate', async () => {
|
||||
await editProcessFilter.openFilter();
|
||||
await editProcessFilter.setProperty('lastModifiedFrom', currentDate);
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await editProcessFilter.setProcessName(runningProcessInstance.entry.name);
|
||||
await setProcessName(currentDate, 'lastModifiedFrom');
|
||||
await processList.checkContentIsDisplayedByName(runningProcessInstance.entry.name);
|
||||
});
|
||||
|
||||
it('[C311318] Should be able to filter by lastModifiedFrom - displays record when date = beforeDate', async () => {
|
||||
await editProcessFilter.openFilter();
|
||||
await editProcessFilter.setProperty('lastModifiedFrom', beforeDate);
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await editProcessFilter.setProcessName(runningProcessInstance.entry.name);
|
||||
await setProcessName(beforeDate, 'lastModifiedFrom');
|
||||
await processList.checkContentIsDisplayedByName(runningProcessInstance.entry.name);
|
||||
});
|
||||
|
||||
@@ -332,18 +333,12 @@ describe('Process filters cloud', () => {
|
||||
});
|
||||
|
||||
it('[C311319] Should be able to filter by lastModifiedTo - displays record when date = currentDate', async () => {
|
||||
await editProcessFilter.openFilter();
|
||||
await editProcessFilter.setProperty('lastModifiedTo', currentDate);
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await editProcessFilter.setProcessName(runningProcessInstance.entry.name);
|
||||
await setProcessName(currentDate);
|
||||
await processList.checkContentIsDisplayedByName(runningProcessInstance.entry.name);
|
||||
});
|
||||
|
||||
it('[C311319] Should be able to filter by lastModifiedTo - does not display record when date = beforeDate', async () => {
|
||||
await editProcessFilter.openFilter();
|
||||
await editProcessFilter.setProperty('lastModifiedTo', beforeDate);
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await editProcessFilter.setProcessName(runningProcessInstance.entry.name);
|
||||
await setProcessName(beforeDate);
|
||||
await processList.checkContentIsNotDisplayedByName(runningProcessInstance.entry.name);
|
||||
});
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -51,7 +51,7 @@ describe('Process filters cloud', () => {
|
||||
const tasksService = new TasksService(apiService);
|
||||
const processInstancesService = new ProcessInstancesService(apiService);
|
||||
|
||||
let runningProcess, completedProcess, testUser, groupInfo;
|
||||
let runningProcess; let completedProcess; let testUser; let groupInfo;
|
||||
const candidateBaseApp = browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.name;
|
||||
const PROCESSES = CONSTANTS.PROCESS_FILTERS;
|
||||
|
||||
@@ -68,13 +68,13 @@ describe('Process filters cloud', () => {
|
||||
.getProcessDefinitionByName(browser.params.resources.ACTIVITI_CLOUD_APPS.CANDIDATE_BASE_APP.processes.candidateGroupProcess, candidateBaseApp);
|
||||
|
||||
runningProcess = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
completedProcess = await processInstancesService.createProcessInstance(processDefinition.entry.key, candidateBaseApp, {
|
||||
'name': StringUtil.generateRandomString(),
|
||||
'businessKey': StringUtil.generateRandomString()
|
||||
name: StringUtil.generateRandomString(),
|
||||
businessKey: StringUtil.generateRandomString()
|
||||
});
|
||||
|
||||
const task = await queryService.getProcessInstanceTasks(completedProcess.entry.id, candidateBaseApp);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,9 +55,9 @@ describe('Process Header cloud component', () => {
|
||||
const processInstancesService = new ProcessInstancesService(apiService);
|
||||
const queryService = new QueryService(apiService);
|
||||
|
||||
let testUser, groupInfo;
|
||||
let testUser; let groupInfo;
|
||||
|
||||
let runningProcess, runningCreatedDate, parentCompleteProcess, childCompleteProcess, completedCreatedDate;
|
||||
let runningProcess; let runningCreatedDate; let parentCompleteProcess; let childCompleteProcess; let completedCreatedDate;
|
||||
const PROCESSES = CONSTANTS.PROCESS_FILTERS;
|
||||
|
||||
beforeAll(async () => {
|
||||
@@ -92,7 +92,7 @@ describe('Process Header cloud component', () => {
|
||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||
});
|
||||
|
||||
afterAll(async() => {
|
||||
afterAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
});
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,7 +48,7 @@ describe('Process list cloud', () => {
|
||||
const processDefinitionService = new ProcessDefinitionsService(apiService);
|
||||
const processInstancesService = new ProcessInstancesService(apiService);
|
||||
|
||||
let testUser, groupInfo;
|
||||
let testUser; let groupInfo;
|
||||
|
||||
const noOfProcesses = 3;
|
||||
const processInstances = [];
|
||||
@@ -56,6 +56,18 @@ describe('Process list cloud', () => {
|
||||
const editProcessFilterConfigFile = editProcessFilterConfiguration.getConfiguration();
|
||||
const PROCESSES = CONSTANTS.PROCESS_FILTERS;
|
||||
|
||||
const checkRowIsSelectedById = async (mode = 'Single') => {
|
||||
await tasksCloudDemoPage.clickSettingsButton();
|
||||
await tasksCloudDemoPage.selectSelectionMode(mode);
|
||||
await tasksCloudDemoPage.clickAppButton();
|
||||
await processFilter.isProcessFiltersListVisible();
|
||||
await expect(await processFilter.getActiveFilterName()).toEqual(PROCESSES.RUNNING);
|
||||
await editProcessFilter.setFilter({ initiator: `${testUser.firstName} ${testUser.lastName}`});
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await processList.selectRowById(processInstances[0]);
|
||||
await processList.checkRowIsSelectedById(processInstances[0]);
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
|
||||
@@ -76,7 +88,7 @@ describe('Process list cloud', () => {
|
||||
await LocalStorageUtil.setConfigField('adf-edit-process-filter', JSON.stringify(editProcessFilterConfigFile));
|
||||
});
|
||||
|
||||
afterAll(async() => {
|
||||
afterAll(async () => {
|
||||
await apiService.loginWithProfile('identityAdmin');
|
||||
await identityService.deleteIdentityUser(testUser.idIdentityService);
|
||||
});
|
||||
@@ -108,16 +120,7 @@ describe('Process list cloud', () => {
|
||||
});
|
||||
|
||||
it('[C297468] Should be able to select only one process when settings are set to Single', async () => {
|
||||
await tasksCloudDemoPage.clickSettingsButton();
|
||||
await tasksCloudDemoPage.selectSelectionMode('Single');
|
||||
await tasksCloudDemoPage.clickAppButton();
|
||||
await processFilter.isProcessFiltersListVisible();
|
||||
await expect(await processFilter.getActiveFilterName()).toEqual(PROCESSES.RUNNING);
|
||||
|
||||
await editProcessFilter.setFilter({ 'initiator': `${testUser.firstName} ${testUser.lastName}`});
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await processList.selectRowById(processInstances[0]);
|
||||
await processList.checkRowIsSelectedById(processInstances[0]);
|
||||
await checkRowIsSelectedById();
|
||||
await expect(await processList.getDataTable().getNumberOfSelectedRows()).toEqual(1);
|
||||
await processList.selectRowById(processInstances[1]);
|
||||
await processList.checkRowIsSelectedById(processInstances[1]);
|
||||
@@ -125,15 +128,7 @@ describe('Process list cloud', () => {
|
||||
});
|
||||
|
||||
it('[C297470] Should be able to select multiple processes using keyboard', async () => {
|
||||
await tasksCloudDemoPage.clickSettingsButton();
|
||||
await tasksCloudDemoPage.selectSelectionMode('Multiple');
|
||||
await tasksCloudDemoPage.clickAppButton();
|
||||
await processFilter.isProcessFiltersListVisible();
|
||||
await expect(await processFilter.getActiveFilterName()).toEqual(PROCESSES.RUNNING);
|
||||
await editProcessFilter.setFilter({ 'initiator': `${testUser.firstName} ${testUser.lastName}`});
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await processList.selectRowById(processInstances[0]);
|
||||
await processList.checkRowIsSelectedById(processInstances[0]);
|
||||
await checkRowIsSelectedById('Multiple');
|
||||
await processList.selectRowWithKeyboard(processInstances[1]);
|
||||
await processList.checkRowIsSelectedById(processInstances[0]);
|
||||
await processList.checkRowIsSelectedById(processInstances[1]);
|
||||
@@ -147,7 +142,7 @@ describe('Process list cloud', () => {
|
||||
await tasksCloudDemoPage.clickAppButton();
|
||||
await processFilter.isProcessFiltersListVisible();
|
||||
await expect(await processFilter.getActiveFilterName()).toEqual(PROCESSES.RUNNING);
|
||||
await editProcessFilter.setFilter({ 'initiator': `${testUser.firstName} ${testUser.lastName}`});
|
||||
await editProcessFilter.setFilter({ initiator: `${testUser.firstName} ${testUser.lastName}`});
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await processList.checkCheckboxById(processInstances[0]);
|
||||
await processList.checkRowIsCheckedById(processInstances[0]);
|
||||
@@ -164,7 +159,7 @@ describe('Process list cloud', () => {
|
||||
await tasksCloudDemoPage.enableMultiSelection();
|
||||
await tasksCloudDemoPage.clickAppButton();
|
||||
await processFilter.isProcessFiltersListVisible();
|
||||
await editProcessFilter.setFilter({ 'initiator': `${testUser.firstName} ${testUser.lastName}`});
|
||||
await editProcessFilter.setFilter({ initiator: `${testUser.firstName} ${testUser.lastName}`});
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await expect(await processFilter.getActiveFilterName()).toEqual(PROCESSES.RUNNING);
|
||||
await browser.sleep(1000);
|
||||
@@ -188,7 +183,7 @@ describe('Process list cloud', () => {
|
||||
await tasksCloudDemoPage.clickAppButton();
|
||||
await processFilter.isProcessFiltersListVisible();
|
||||
await expect(await processFilter.getActiveFilterName()).toEqual(PROCESSES.RUNNING);
|
||||
await editProcessFilter.setFilter({ 'initiator': `${testUser.firstName} ${testUser.lastName}`});
|
||||
await editProcessFilter.setFilter({ initiator: `${testUser.firstName} ${testUser.lastName}`});
|
||||
await processList.getDataTable().waitTillContentLoaded();
|
||||
await processList.checkCheckboxById(processInstances[0]);
|
||||
await processList.checkRowIsCheckedById(processInstances[0]);
|
||||
|
@@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2019 Alfresco Software, Ltd.
|
||||
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -77,13 +77,13 @@ describe('Process Task - Attach content file', () => {
|
||||
let groupInfo: any;
|
||||
|
||||
const pdfFileOne = {
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG.file_path
|
||||
};
|
||||
|
||||
const pdfFileTwo = {
|
||||
'name': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name,
|
||||
'location': browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_path
|
||||
name: browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_name,
|
||||
location: browser.params.resources.Files.ADF_DOCUMENTS.PNG_B.file_path
|
||||
};
|
||||
|
||||
beforeAll(async () => {
|
||||
|
Reference in New Issue
Block a user