mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +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.
|
||||
@@ -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]);
|
||||
|
Reference in New Issue
Block a user