mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3823] Add tests for create site dialog (#4090)
* [ADF-3823] Create Library component tests * [ADF-3823] Create Library component tests * [ADF-3823] Fixing lint errors. * [ADF-3823] Added automation id for Create Library btn * [ADF-3823] Updated tests and added check for white spaces only. * [ADF-3823] Updated tests & rebased
This commit is contained in:
committed by
Eugenio Romano
parent
c7c4dcb659
commit
5b2887fea1
@@ -47,11 +47,11 @@ export class ContentListPage {
|
||||
}
|
||||
|
||||
getTooltip(nodeName) {
|
||||
return this.getRowByRowName(nodeName).element(by.css(`#document-list-container span[title="${nodeName}"]`)).getAttribute('title');
|
||||
return this.getRowByRowName(nodeName).element(by.css(`adf-document-list span[title="${nodeName}"]`)).getAttribute('title');
|
||||
}
|
||||
|
||||
getRowsName(content) {
|
||||
let row = element.all(by.css(`#document-list-container span[title='${content}']`)).first();
|
||||
let row = element.all(by.css(`adf-document-list span[title='${content}']`)).first();
|
||||
Util.waitUntilElementIsVisible(row);
|
||||
return row;
|
||||
}
|
||||
@@ -61,6 +61,10 @@ export class ContentListPage {
|
||||
return this.getRowsName(content).element(this.rowByRowName);
|
||||
}
|
||||
|
||||
getCellByNameAndColumn(content, columnName) {
|
||||
return this.getRowByRowName(content).element(by.css(`div[title='${columnName}']`));
|
||||
}
|
||||
|
||||
getAllDisplayedRows() {
|
||||
return element.all(this.rows).count();
|
||||
}
|
||||
|
Reference in New Issue
Block a user