Improve a datatable e2e method (#7470)

This commit is contained in:
arditdomi
2022-01-26 13:06:23 +00:00
committed by GitHub
parent e98fd2db0c
commit 3d544beff3

View File

@@ -64,6 +64,7 @@ export class DataTableItem {
async clickAndEnterOnRow(columnName: string, columnValue: string): Promise<void> {
const row = await this.getRow(columnName, columnValue);
await BrowserActions.click(row);
await this.checkRowIsSelected(columnName, columnValue);
await browser.actions().sendKeys(protractor.Key.ENTER).perform();
}