e2e tests for favourite directive (#4912)

* in progress - favourite directive e2e tests

* in progress - favourite directive e2e tests

* favourite directive e2e tests

* update testcase name

* updated test case names

* remove unnecessary line spaces

* refactored favourites to favorites
This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-07-10 09:56:28 +01:00
committed by Eugenio Romano
parent bbe22fd2a7
commit fadcc19eba
7 changed files with 263 additions and 9 deletions

View File

@@ -67,10 +67,19 @@ export class CustomSources {
BrowserActions.click(this.getSourceType(source.mySites));
}
selectFavoritesSourceType() {
this.clickOnSourceType();
BrowserActions.click(this.getSourceType(source.favorites));
}
checkRowIsDisplayed(rowName) {
return this.dataTable.checkContentIsDisplayed('Name', rowName);
}
checkRowIsNotDisplayed(rowName) {
return this.dataTable.checkContentIsNotDisplayed('Name', rowName);
}
getStatusCell(rowName) {
const cell = this.dataTable.getCellByRowContentAndColumn('Name', rowName, column.status);
return BrowserActions.getText(cell);