From fa7eb8722dffd8bfe2ad16a8fe5ec437785ce2de Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 27 Oct 2023 15:09:47 +0100 Subject: [PATCH] fix linting for ADF (#9036) * fix linting * fix linting --- .../lib/protractor/core/pages/data-table-component.page.ts | 4 ++-- .../lib/protractor/process-services-cloud/actions/project.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts b/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts index bfad8205e71..0b18daf765e 100644 --- a/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts +++ b/lib/testing/src/lib/protractor/core/pages/data-table-component.page.ts @@ -230,7 +230,7 @@ export class DataTableComponentPage { let columnValues: string[] = []; const columnLocator = $$(`adf-datatable div[class*='adf-datatable-body'] adf-datatable-row[class*='adf-datatable-row'] div[title="${column}"] span`); - await BrowserVisibility.waitUntilElementIsPresent(await columnLocator.first(), 1000); + await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000); try { await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000); columnValues = await columnLocator @@ -461,7 +461,7 @@ export class DataTableComponentPage { async clickRowByContentCheckbox(name: string): Promise { const resultElement = this.rootElement.$$(`div[data-automation-id='${name}']`).first().element(by.xpath(`ancestor::adf-datatable-row/label/mat-checkbox`)); - await browser.actions().mouseMove(resultElement); + browser.actions().mouseMove(resultElement); await BrowserActions.click(resultElement); } diff --git a/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts b/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts index 2a91a729624..c616aee2e31 100644 --- a/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts +++ b/lib/testing/src/lib/protractor/process-services-cloud/actions/project.ts @@ -99,7 +99,7 @@ export class Project { } async import(projectFilePath: string): Promise { - const fileContent = await fs.createReadStream(projectFilePath); + const fileContent = fs.createReadStream(projectFilePath); const requestOptions: E2eRequestApiHelperOptions = { formParams: { file: fileContent }, contentTypes: ['multipart/form-data']