mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA] fix e2e tests failing on slow environments (#801)
* fix tests failing on slow environments * forgot a change
This commit is contained in:
committed by
Denys Vuika
parent
49e80ddce1
commit
2ac59bd278
@@ -38,7 +38,7 @@ export class SearchInput extends Component {
|
||||
optionCheckbox: '.mat-checkbox'
|
||||
};
|
||||
|
||||
searchButton: ElementFinder = browser.element(by.css(SearchInput.selectors.searchButton));
|
||||
searchButton: ElementFinder = this.component.element(by.css(SearchInput.selectors.searchButton));
|
||||
searchContainer: ElementFinder = browser.element(by.css(SearchInput.selectors.searchContainer));
|
||||
searchBar: ElementFinder = browser.element(by.id(SearchInput.selectors.searchInput));
|
||||
searchOptionsArea: ElementFinder = browser.element(by.id(SearchInput.selectors.searchOptionsArea));
|
||||
@@ -54,8 +54,8 @@ export class SearchInput extends Component {
|
||||
return (await this.searchContainer.isDisplayed()) && (await this.searchButton.isDisplayed());
|
||||
}
|
||||
|
||||
async clickSearchContainer() {
|
||||
return await this.searchContainer.click();
|
||||
async clickSearchButton() {
|
||||
await this.searchButton.click();
|
||||
}
|
||||
|
||||
async isOptionsAreaDisplayed() {
|
||||
@@ -105,8 +105,6 @@ export class SearchInput extends Component {
|
||||
return optClass.includes('mat-checkbox-checked');
|
||||
}
|
||||
|
||||
|
||||
|
||||
async searchForText(text: string) {
|
||||
await this.searchBar.clear();
|
||||
await this.searchBar.sendKeys(text);
|
||||
|
Reference in New Issue
Block a user