Remove useless protractor tests (#8998)

* [ci:force] remove useless viewer tests

* [ci:force] fix types

* [ci:force] remove demo-shell specific tests

* fix typo
This commit is contained in:
Denys Vuika
2023-10-16 10:44:52 +01:00
committed by GitHub
parent 2f36da5765
commit 462166293a
11 changed files with 11 additions and 794 deletions

View File

@@ -74,11 +74,11 @@ export class ContentServicesPage {
siteListDropdown = new DropdownPage($(`mat-select[data-automation-id='site-my-files-option']`));
sortingDropdown = new DropdownPage($('mat-select[data-automation-id="grid-view-sorting"]'));
async pressContextMenuActionNamed(actionName): Promise<void> {
async pressContextMenuActionNamed(actionName: string): Promise<void> {
await BrowserActions.clickExecuteScript(`button[data-automation-id="context-${actionName}"]`);
}
async isContextActionEnabled(actionName): Promise<boolean> {
async isContextActionEnabled(actionName: string): Promise<boolean> {
const actionButton = $(`button[data-automation-id="context-${actionName}"`);
await BrowserVisibility.waitUntilElementIsVisible(actionButton);
return actionButton.isEnabled();
@@ -239,7 +239,7 @@ export class ContentServicesPage {
await this.contentList.doubleClickRow(nodeName);
}
async selectRow(nodeName): Promise<void> {
async selectRow(nodeName: string): Promise<void> {
await this.contentList.selectRow(nodeName);
}