Skip to content

Commit

Permalink
Code format
Browse files Browse the repository at this point in the history
  • Loading branch information
elsoazemelet committed Aug 5, 2024
1 parent 529ec00 commit 5eccd9c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
19 changes: 11 additions & 8 deletions playwright-tests/data/actionBlock.js
Original file line number Diff line number Diff line change
@@ -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: {
Expand Down Expand Up @@ -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),
},
},
Expand All @@ -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),
Expand Down
8 changes: 4 additions & 4 deletions playwright-tests/pages/configPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions playwright-tests/tests/actionBlockExistence.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const blocks = {
};
const blockElements = {
Function: {
Function: ["Function", "input", "End"]
Function: ["Function", "input", "End"],
},
variables: {
Lookup: ["source", "input", "output", "destination", "addNewPair"],
Expand Down Expand Up @@ -194,7 +194,7 @@ test.describe("Elements Existence", () => {
configPage.openLoopTimes();
}
if (category == "element") {
await configPage.clickCategoryCheckboxFileds(blockName)
await configPage.clickCategoryCheckboxFileds(blockName);
}
});

Expand Down

0 comments on commit 5eccd9c

Please sign in to comment.