[ACA-3373] Add e2e multi item select method in DataTable component (#6129)

* [ACA-3373] Update data-table component page object methods

* Remove one line methods
* Fix datatable-component and e2e test
* Fix standalone-task-e2e test

* Remove browser.sleep call
This commit is contained in:
Roxana Diacenco
2020-11-06 11:49:31 +02:00
committed by GitHub
parent 91b7458bee
commit f918d9ee26
5 changed files with 37 additions and 14 deletions

View File

@@ -75,14 +75,14 @@ export class AttachmentListPage {
async doubleClickFile(name: string): Promise<void> {
await BrowserActions.closeMenuAndDialogs();
await BrowserVisibility.waitUntilElementIsVisible(element.all(by.css('div[data-automation-id="' + name + '"]')).first());
const fileAttached = element.all(by.css('div[data-automation-id="' + name + '"]')).first();
await BrowserVisibility.waitUntilElementIsVisible(element.all(by.css(`div[data-automation-id="${name}"]`)).first());
const fileAttached = element.all(by.css(`div[data-automation-id="${name}"]`)).first();
await BrowserActions.click(fileAttached);
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
}
async checkFileIsRemoved(name: string): Promise<void> {
const fileAttached = element.all(by.css('div[data-automation-id="' + name + '"]')).first();
const fileAttached = element.all(by.css(`div[data-automation-id="${name}"]`)).first();
await BrowserVisibility.waitUntilElementIsNotVisible(fileAttached);
}