mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
committed by
Eugenio Romano
parent
5c7cd57368
commit
2cc7fe7efe
@@ -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));
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -30,7 +30,6 @@ export class GroupCloudComponentPage {
|
||||
}
|
||||
|
||||
async searchGroupsToExisting(name) {
|
||||
await BrowserVisibility.waitUntilElementIsVisible(this.groupCloudSearch);
|
||||
await BrowserActions.clearSendKeys(this.groupCloudSearch, name);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user