mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4028][ADF-4047]Add process list cloud selection tests (#4537)
* Add process list cloud selection tests * Fix lint issues * Fix lint issues * Added columns to contentServicesPage * Fix lint error. * Add the possibility to test the selection mode for process details.
This commit is contained in:
committed by
Eugenio Romano
parent
453415d73b
commit
f2c954d911
@@ -21,6 +21,11 @@ import { element, by } from 'protractor';
|
||||
|
||||
export class ProcessListCloudComponentPage {
|
||||
|
||||
columns = {
|
||||
id: 'Id',
|
||||
name: 'Name'
|
||||
};
|
||||
|
||||
processList = element(by.css('adf-cloud-process-list'));
|
||||
noProcessFound = element.all(by.css("div[class='adf-empty-content__title']")).first();
|
||||
|
||||
@@ -31,27 +36,51 @@ export class ProcessListCloudComponentPage {
|
||||
}
|
||||
|
||||
selectRow(processName) {
|
||||
return this.dataTable.selectRow('Name', processName);
|
||||
return this.dataTable.selectRow(this.columns.name, processName);
|
||||
}
|
||||
|
||||
selectRowById(processId) {
|
||||
return this.dataTable.selectRow('Id', processId);
|
||||
return this.dataTable.selectRow(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkRowIsSelectedById(processId) {
|
||||
return this.dataTable.checkRowIsSelected(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkRowIsNotSelectedById(processId) {
|
||||
return this.dataTable.checkRowIsNotSelected(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkRowIsCheckedById(processId) {
|
||||
return this.dataTable.checkRowIsChecked(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkRowIsNotCheckedById(processId) {
|
||||
return this.dataTable.checkRowIsNotChecked(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkCheckboxById(processId) {
|
||||
return this.dataTable.clickCheckbox(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkContentIsDisplayedByName(processName) {
|
||||
return this.dataTable.checkContentIsDisplayed('Name', processName);
|
||||
return this.dataTable.checkContentIsDisplayed(this.columns.name, processName);
|
||||
}
|
||||
|
||||
checkContentIsDisplayedById(processId) {
|
||||
return this.dataTable.checkContentIsDisplayed('Id', processId);
|
||||
return this.dataTable.checkContentIsDisplayed(this.columns.id, processId);
|
||||
}
|
||||
|
||||
checkContentIsNotDisplayedById(processId) {
|
||||
return this.dataTable.checkContentIsNotDisplayed('Id', processId);
|
||||
return this.dataTable.checkContentIsNotDisplayed(this.columns.id, processId);
|
||||
}
|
||||
|
||||
selectRowWithKeyboard(processId) {
|
||||
return this.dataTable.selectRowWithKeyboard(this.columns.id, processId);
|
||||
}
|
||||
|
||||
getAllRowsNameColumn() {
|
||||
return this.dataTable.getAllRowsColumnValues('Name');
|
||||
return this.dataTable.getAllRowsColumnValues(this.columns.name);
|
||||
}
|
||||
|
||||
checkProcessListIsLoaded() {
|
||||
|
Reference in New Issue
Block a user