mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3883] Improve edit-process-filter-cloud by adding inputs to control filters, sort and actions (#4127)
* [ADF-3883] Improve edit-process-filter-cloud by adding inputs to control filters, sort and actions * Fixed translate keys * * Added more properties to the editProcessModel * Fix FIlterOption model * Fix import model name * * After rebase* Cherry pick * Updated doc * Revert commit * Revert changes * * Removed obervalu from model* Added edit process/task filter to the demo shell* Refacotred edit task/process filter * Updated test to the recent changes * * Fixed failing e2e tests * Added data-automation-id * * After rebase * * Modified ProcessFilterActionType model* Added condition to get the currect filter after save as* Changed column to sort in the en.json, removed unused keys* Improved onSave editProcessfilter method * imported missing groupModule in the process-service-cloud module * * Fixed e2e test
This commit is contained in:
committed by
Maurizio Vitale
parent
618929cefb
commit
ea733fc996
@@ -243,10 +243,12 @@ export class DataTablePage {
|
||||
|
||||
checkSpinnerIsDisplayed() {
|
||||
Util.waitUntilElementIsPresent(this.spinner);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkSpinnerIsNotDisplayed() {
|
||||
Util.waitUntilElementIsNotOnPage(this.spinner);
|
||||
return this;
|
||||
}
|
||||
|
||||
checkRowIsDisplayedByName(filename) {
|
||||
|
@@ -29,7 +29,7 @@ export class EditProcessFilterCloudComponent {
|
||||
}
|
||||
|
||||
setStateFilterDropDown(option) {
|
||||
this.clickOnDropDownArrow('status');
|
||||
this.clickOnDropDownArrow('state');
|
||||
|
||||
let stateElement = element.all(by.cssContainingText('mat-option span', option)).first();
|
||||
Util.waitUntilElementIsClickable(stateElement);
|
||||
|
@@ -98,6 +98,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')
|
||||
.setSortFilterDropDown('ID').setOrderFilterDropDown('ASC');
|
||||
processCloudDemoPage.processListCloudComponent().getDataTable().checkSpinnerIsDisplayed().checkSpinnerIsNotDisplayed();
|
||||
processCloudDemoPage.getAllRowsByIdColumn().then(function (list) {
|
||||
let initialList = list.slice(0);
|
||||
list.sort(function (firstStr, secondStr) {
|
||||
@@ -107,6 +108,7 @@ describe('Process list cloud', () => {
|
||||
});
|
||||
|
||||
processCloudDemoPage.editProcessFilterCloudComponent().setOrderFilterDropDown('DESC');
|
||||
processCloudDemoPage.processListCloudComponent().getDataTable().checkSpinnerIsDisplayed().checkSpinnerIsNotDisplayed();
|
||||
processCloudDemoPage.getAllRowsByIdColumn().then(function (list) {
|
||||
let initialList = list.slice(0);
|
||||
list.sort(function (firstStr, secondStr) {
|
||||
|
Reference in New Issue
Block a user