[no-issue] Parallel run e2e and e2e common action refactoring (#4702)

This commit is contained in:
Eugenio Romano
2019-05-13 04:44:35 +02:00
committed by GitHub
parent a48bfc3714
commit 898e3b5a80
288 changed files with 8704 additions and 5130 deletions

View File

@@ -17,7 +17,7 @@
import { BrowserVisibility } from '@alfresco/adf-testing';
import { element, by } from 'protractor';
import { DataTableComponentPage } from '@alfresco/adf-testing';
import { DataTableComponentPage, BrowserActions } from '@alfresco/adf-testing';
import { NavigationBarPage } from '../navigationBarPage';
const source = {
@@ -57,13 +57,14 @@ export class CustomSources {
this.navigationBarPage.navigateToCustomSources();
this.waitForToolbarToBeVisible();
}
clickOnSourceType() {
return this.sourceTypeDropdown.click();
BrowserActions.click(this.sourceTypeDropdown);
}
selectMySitesSourceType() {
this.clickOnSourceType();
this.getSourceType(source.mySites).click();
BrowserActions.click(this.getSourceType(source.mySites));
}
checkRowIsDisplayed(rowName) {
@@ -72,8 +73,7 @@ export class CustomSources {
getStatusCell(rowName) {
const cell = this.dataTable.getCellByRowContentAndColumn('Name', rowName, column.status);
BrowserVisibility.waitUntilElementIsVisible(cell);
return cell.getText();
return BrowserActions.getText(cell);
}
}