mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3977] EditProcessComponent - Be able to change the sort and actions (#4250)
* [ADF-3883] Improve edit-process-filter-cloud by adding inputs to control filters, sort and actions * Provided an input to pass sort properties * Provided an input to pass filter actions * Provided a way to configure sort properties and actions * * Updated unit tests to the recent changes * Fixed order should be visible if sort as been added to the config * Fixed if lastModified if defined the component should show the range lastModifiedTo lastModifiedFrom * Updated doc * * Removed ProcessFilterActionType* Renamed state to status* Refactored edit-process-filter * Updated doc * * After rebase * * Fixed editProcessFilter e2e tests. * * Removed unwanted comment * * After rebase * * After rebase * * After rebase
This commit is contained in:
committed by
Eugenio Romano
parent
2b5b915d55
commit
bc5208b767
@@ -46,13 +46,13 @@ export class EditProcessFilterCloudComponent {
|
||||
return this;
|
||||
}
|
||||
|
||||
setStateFilterDropDown(option) {
|
||||
this.clickOnDropDownArrow('state');
|
||||
setStatusFilterDropDown(option) {
|
||||
this.clickOnDropDownArrow('status');
|
||||
|
||||
let stateElement = element.all(by.cssContainingText('mat-option span', option)).first();
|
||||
Util.waitUntilElementIsClickable(stateElement);
|
||||
Util.waitUntilElementIsVisible(stateElement);
|
||||
stateElement.click();
|
||||
let statusElement = element.all(by.cssContainingText('mat-option span', option)).first();
|
||||
Util.waitUntilElementIsClickable(statusElement);
|
||||
Util.waitUntilElementIsVisible(statusElement);
|
||||
statusElement.click();
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@@ -94,7 +94,7 @@ describe('Process list cloud', () => {
|
||||
});
|
||||
|
||||
it('[C290069] Should display processes ordered by name when Name is selected from sort dropdown', async() => {
|
||||
processCloudDemoPage.editProcessFilterCloudComponent().clickCustomiseFilterHeader().setStateFilterDropDown('RUNNING')
|
||||
processCloudDemoPage.editProcessFilterCloudComponent().clickCustomiseFilterHeader().setStatusFilterDropDown('RUNNING')
|
||||
.setSortFilterDropDown('NAME').setOrderFilterDropDown('ASC');
|
||||
processCloudDemoPage.processListCloudComponent().getAllRowsNameColumn().then(function (list) {
|
||||
let initialList = list.slice(0);
|
||||
@@ -112,7 +112,7 @@ describe('Process list cloud', () => {
|
||||
});
|
||||
|
||||
it('[C291783] Should display processes ordered by id when Id is selected from sort dropdown', async() => {
|
||||
processCloudDemoPage.editProcessFilterCloudComponent().clickCustomiseFilterHeader().setStateFilterDropDown('RUNNING')
|
||||
processCloudDemoPage.editProcessFilterCloudComponent().clickCustomiseFilterHeader().setStatusFilterDropDown('RUNNING')
|
||||
.setSortFilterDropDown('ID').setOrderFilterDropDown('ASC');
|
||||
processCloudDemoPage.processListCloudComponent().getDataTable().checkSpinnerIsDisplayed().checkSpinnerIsNotDisplayed();
|
||||
processCloudDemoPage.getAllRowsByIdColumn().then(function (list) {
|
||||
|
Reference in New Issue
Block a user