[ADF-5235] Facet fix and improve search test (#6122)

* improve search test

* fix

* fix

* fix

* changes

* modify

* logout public URL

* improve stability some e2e

* fx lint

* fix

* fix

* improve

* fix

* improve

* fix

* fix

* fix

* fix [skip ci]

* fix

* some fix [skip ci]

* fix

* fix lint

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* convert C291893 in manual test case in testrail

* fix

* fix
This commit is contained in:
Eugenio Romano
2020-09-21 09:35:01 +01:00
committed by GitHub
parent 9c427b3142
commit 46ccda68b3
111 changed files with 987 additions and 604 deletions
+11 -10
View File
@@ -30,7 +30,8 @@ export class SearchBarPage {
searchBarPage = element(by.css(`mat-list[id='autocomplete-search-result-list']`));
async pressDownArrowAndEnter(): Promise<void> {
await element(by.css(`adf-search-control div input`)).sendKeys(protractor.Key.ARROW_DOWN);
await BrowserVisibility.waitUntilElementIsVisible(this.searchBar);
await this.searchBar.sendKeys(protractor.Key.ARROW_DOWN);
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
}
@@ -74,25 +75,25 @@ export class SearchBarPage {
await BrowserVisibility.waitUntilElementIsVisible(this.getRowByRowName(name));
}
async clickOnSpecificRow(name: string): Promise<void> {
await this.resultTableContainsRow(name);
await BrowserActions.click(this.getRowByRowName(name));
async clickOnSpecificRow(fileName: string): Promise<void> {
await this.resultTableContainsRow(fileName);
await BrowserActions.click(this.getRowByRowName(fileName));
}
getRowByRowName(name: string): ElementFinder {
return element(by.css(`mat-list-item[data-automation-id='autocomplete_for_${name}']`));
}
async getSpecificRowsHighlightName(name: string): Promise<string> {
return BrowserActions.getText(this.getRowByRowName(name).element(this.highlightName));
async getSpecificRowsHighlightName(fileName: string): Promise<string> {
return BrowserActions.getText(this.getRowByRowName(fileName).element(this.highlightName));
}
async getSpecificRowsCompleteName(name: string): Promise<string> {
return BrowserActions.getText(this.getRowByRowName(name).element(this.completeName));
async getSpecificRowsCompleteName(fileName: string): Promise<string> {
return BrowserActions.getText(this.getRowByRowName(fileName).element(this.completeName));
}
async getSpecificRowsAuthor(name: string): Promise<string> {
return BrowserActions.getText(this.getRowByRowName(name).element(this.rowsAuthor));
async getSpecificRowsAuthor(fileName: string): Promise<string> {
return BrowserActions.getText(this.getRowByRowName(fileName).element(this.rowsAuthor));
}
async clearText(): Promise<void> {