fix linting for ADF (#9036)

* fix linting

* fix linting
This commit is contained in:
Denys Vuika
2023-10-27 15:09:47 +01:00
committed by GitHub
parent b847383249
commit fa7eb8722d
2 changed files with 3 additions and 3 deletions

View File

@@ -230,7 +230,7 @@ export class DataTableComponentPage {
let columnValues: string[] = []; let columnValues: string[] = [];
const columnLocator = $$(`adf-datatable div[class*='adf-datatable-body'] adf-datatable-row[class*='adf-datatable-row'] div[title="${column}"] span`); 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 { try {
await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000); await BrowserVisibility.waitUntilElementIsPresent(columnLocator.first(), 1000);
columnValues = await columnLocator columnValues = await columnLocator
@@ -461,7 +461,7 @@ export class DataTableComponentPage {
async clickRowByContentCheckbox(name: string): Promise<void> { async clickRowByContentCheckbox(name: string): Promise<void> {
const resultElement = this.rootElement.$$(`div[data-automation-id='${name}']`).first().element(by.xpath(`ancestor::adf-datatable-row/label/mat-checkbox`)); 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); await BrowserActions.click(resultElement);
} }

View File

@@ -99,7 +99,7 @@ export class Project {
} }
async import(projectFilePath: string): Promise<NodeEntry> { async import(projectFilePath: string): Promise<NodeEntry> {
const fileContent = await fs.createReadStream(projectFilePath); const fileContent = fs.createReadStream(projectFilePath);
const requestOptions: E2eRequestApiHelperOptions = { const requestOptions: E2eRequestApiHelperOptions = {
formParams: { file: fileContent }, formParams: { file: fileContent },
contentTypes: ['multipart/form-data'] contentTypes: ['multipart/form-data']