diff --git a/playwright-tests/data/actionBlock.js b/playwright-tests/data/actionBlock.js index b0356c0eb..13b7f13eb 100644 --- a/playwright-tests/data/actionBlock.js +++ b/playwright-tests/data/actionBlock.js @@ -1,13 +1,16 @@ export const blocks = (page) => ({ Function: { Function: { - block: page.locator('#action-menu div').filter({ hasText: 'Function' }).nth(3), - elements: { - Function: page.locator('#cfg-0'), - input: page.locator('.view-line'), - End: page.locator('#cfg-1'), + block: page + .locator("#action-menu div") + .filter({ hasText: "Function" }) + .nth(3), + elements: { + Function: page.locator("#cfg-0"), + input: page.locator(".view-line"), + End: page.locator("#cfg-1"), + }, }, - } }, variables: { @@ -233,7 +236,7 @@ export const blocks = (page) => ({ .nth(2), elements: { Bit: page.getByRole("textbox").first(), - Min: page.getByRole("textbox" ).nth(1), + Min: page.getByRole("textbox").nth(1), Max: page.getByRole("textbox").nth(2), }, }, @@ -244,7 +247,7 @@ export const blocks = (page) => ({ .nth(2), elements: { Mode: page.getByRole("textbox").first(), - Velocity: page.getByRole("textbox" ).nth(1), + Velocity: page.getByRole("textbox").nth(1), Min: page.getByRole("textbox").nth(2), Max: page.getByRole("textbox").nth(3), Sensitivity: page.getByRole("textbox").nth(4), diff --git a/playwright-tests/pages/configPage.js b/playwright-tests/pages/configPage.js index 884d913c0..3e92a4906 100644 --- a/playwright-tests/pages/configPage.js +++ b/playwright-tests/pages/configPage.js @@ -57,8 +57,8 @@ export class ConfigPage { this.blocks = blocks(page); this.loopTimesSwtich = this.blocks["loop"]["Repeater Loop"]["elements"]["times"]; - this.elementMinMaxButton = page.getByLabel('Enable Min'); - this.elementSensitivity = page.getByLabel('Enable Sensitivity'); + this.elementMinMaxButton = page.getByLabel("Enable Min"); + this.elementSensitivity = page.getByLabel("Enable Sensitivity"); this.addBlocktoLastSandwitchButton = page .locator("anim-block") @@ -122,11 +122,11 @@ export class ConfigPage { } async clickCategoryMinMax() { - await this.elementMinMaxButton.click() + await this.elementMinMaxButton.click(); } async clickCategorySensitivity() { - await this.elementSensitivity.click() + await this.elementSensitivity.click(); } // Element and Action Operations diff --git a/playwright-tests/tests/actionBlockExistence.spec.js b/playwright-tests/tests/actionBlockExistence.spec.js index 8062fc981..7ea0aff9b 100644 --- a/playwright-tests/tests/actionBlockExistence.spec.js +++ b/playwright-tests/tests/actionBlockExistence.spec.js @@ -38,7 +38,7 @@ const blocks = { }; const blockElements = { Function: { - Function: ["Function", "input", "End"] + Function: ["Function", "input", "End"], }, variables: { Lookup: ["source", "input", "output", "destination", "addNewPair"], @@ -194,7 +194,7 @@ test.describe("Elements Existence", () => { configPage.openLoopTimes(); } if (category == "element") { - await configPage.clickCategoryCheckboxFileds(blockName) + await configPage.clickCategoryCheckboxFileds(blockName); } });