mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-5470] [E2E Automation] Test cases failing on the newest Chrome b… (#7539)
* [ADF-5470] [E2E Automation] Test cases failing on the newest Chrome browser 98
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { by, ElementFinder, browser, $$ } from 'protractor';
|
||||
import { by, ElementFinder, browser, $$, protractor } from 'protractor';
|
||||
import { DataTableComponentPage } from '../../core/pages/data-table-component.page';
|
||||
import { BrowserVisibility } from '../../core/utils/browser-visibility';
|
||||
import { BrowserActions } from '../../core/utils/browser-actions';
|
||||
@@ -62,6 +62,17 @@ export class DocumentListPage {
|
||||
await this.dataTable.selectRowWithKeyboard('Display name', nodeName);
|
||||
}
|
||||
|
||||
async selectRowsWithKeyboard(...contentNames: string[]): Promise<void> {
|
||||
let option: any;
|
||||
await browser.actions().sendKeys(protractor.Key.COMMAND).perform();
|
||||
for (const name of contentNames) {
|
||||
option = await this.dataTable.getRow('Display name', name);
|
||||
await option.click();
|
||||
await this.dataTable.checkRowIsSelected('Display name', name);
|
||||
}
|
||||
await browser.actions().sendKeys(protractor.Key.NULL).perform();
|
||||
}
|
||||
|
||||
async rightClickOnRow(nodeName: string): Promise<void> {
|
||||
await this.dataTable.rightClickOnRow('Display name', nodeName);
|
||||
}
|
||||
|
Reference in New Issue
Block a user