[AAE-1178] ADF - deleted un-necessary steps (#5335)

* [AAE-1178] e2e/pages/adf - deleted un-necessary steps waitUntilElementIsVisble & waitUntilElementIsClickable before click() action & clearSendKeys()

* [AAE-1178] lib & cloud - deleted un-necessary steps waitUntilElementIsVisble & waitUntilElementIsClickable before click() action & clearSendKeys()
This commit is contained in:
Alexandra Abrudan
2019-12-17 09:32:50 +00:00
committed by Eugenio Romano
parent 5c7cd57368
commit 2cc7fe7efe
21 changed files with 1 additions and 55 deletions

View File

@@ -101,7 +101,6 @@ export class DateRangeFilterPage {
}
async clickToField(): Promise<void> {
await BrowserVisibility.waitUntilElementIsClickable(this.filter.element(this.toField));
await BrowserActions.click(this.filter.element(this.toField));
}

View File

@@ -36,7 +36,6 @@ export class DropdownWidget {
async openDropdown(locator: string = '#dropdown'): Promise<void> {
await this.checkDropdownIsDisplayed(locator);
const dropdown = locator ? element(by.css(`${locator}`)) : element(by.css(`#dropdown`));
await BrowserVisibility.waitUntilElementIsClickable(dropdown);
await BrowserActions.click(dropdown);
}

View File

@@ -175,7 +175,6 @@ export class SettingsPage {
}
async setProcessServicesURL(processServiceURL) {
await BrowserVisibility.waitUntilElementIsVisible(this.bpmText);
await BrowserActions.clearSendKeys(this.bpmText, processServiceURL);
}
@@ -192,17 +191,14 @@ export class SettingsPage {
}
async clearProcessServicesURL() {
await BrowserVisibility.waitUntilElementIsVisible(this.bpmText);
await BrowserActions.clearWithBackSpace(this.bpmText);
}
async setAuthHost(authHostURL) {
await BrowserVisibility.waitUntilElementIsVisible(this.authHostText);
await BrowserActions.clearSendKeys(this.authHostText, authHostURL);
}
async setIdentityHost(identityHost) {
await BrowserVisibility.waitUntilElementIsVisible(this.identityHostText);
await BrowserActions.clearSendKeys(this.identityHostText, identityHost);
}

View File

@@ -113,7 +113,6 @@ export class ViewerPage {
}
async clearPageNumber(): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.pageSelectorInput);
await BrowserActions.clearSendKeys(this.pageSelectorInput, protractor.Key.ENTER);
}
@@ -140,7 +139,6 @@ export class ViewerPage {
}
async enterPassword(password): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.passwordInput);
await BrowserActions.clearSendKeys(this.passwordInput, password);
}
@@ -590,7 +588,7 @@ export class ViewerPage {
async enterCustomName(text: string): Promise<void> {
const textField: ElementFinder = element(by.css('input[data-automation-id="adf-text-custom-name"]'));
await BrowserVisibility.waitUntilElementIsVisible(textField);
// await BrowserVisibility.waitUntilElementIsVisible(textField);
await BrowserActions.clearSendKeys(textField, text);
}

View File

@@ -30,7 +30,6 @@ export class GroupCloudComponentPage {
}
async searchGroupsToExisting(name) {
await BrowserVisibility.waitUntilElementIsVisible(this.groupCloudSearch);
await BrowserActions.clearSendKeys(this.groupCloudSearch, name);
}

View File

@@ -30,7 +30,6 @@ export class PeopleCloudComponentPage {
}
async searchAssigneeAndSelect(name: string): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.peopleCloudSearch);
await BrowserActions.clearSendKeys(this.peopleCloudSearch, name);
await this.selectAssigneeFromList(name);
}
@@ -43,7 +42,6 @@ export class PeopleCloudComponentPage {
}
async searchAssigneeToExisting(name: string): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(this.peopleCloudSearch);
await BrowserActions.clearSendKeys(this.peopleCloudSearch, name);
}

View File

@@ -69,8 +69,6 @@ export class StartTasksCloudPage {
}
async blur(locator: ElementFinder): Promise<void> {
await BrowserVisibility.waitUntilElementIsVisible(locator);
await BrowserVisibility.waitUntilElementIsClickable(locator);
await BrowserActions.click(locator);
await locator.sendKeys(Key.TAB);
}