Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions playwright-tests/data/actionBlockElements.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,8 @@
"led": {
"Start Animation": ["ledNumber", "Layer", "Phase", "Rate", "Shape"],
"Stop Animation": ["ledNumber", "Layer"],
"Color": [
"ledNumber",
"Layer",
"Red",
"Green",
"Blue",
"Canva",
"Random",
"Beauty"
],
"Intensity": ["LED Number", "Layer", "Intensity"]
"Simple Color": ["ledNumber", "Layer", "Red", "Green", "Blue"],
"Simple Intensity": ["Element", "Layer", "Intensity"]
},
"midi": {
"MIDI": ["Channel", "Command", "Parameter1", "Parameter2"],
Expand Down
15 changes: 6 additions & 9 deletions playwright-tests/data/actionBlockLocators.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,20 @@ export const blocks = (page) => ({
Layer: page.getByLabel("Layer"),
},
},
Color: {
block: page.locator("#action-menu").getByText("Color", { exact: true }),
"Simple Color": {
block: page.locator("#action-menu").getByText("Simple Color"),
elements: {
ledNumber: page.getByLabel("LED Number"),
ledNumber: page.getByLabel("Element"),
Layer: page.getByLabel("Layer"),
Red: page.getByLabel("Red"),
Green: page.getByLabel("Green"),
Blue: page.getByLabel("Blue"),
Canva: page.getByTestId("rgb-color-picker-canvas"),
Random: page.getByTestId("random-color-generator"),
Beauty: page.locator("#cfg-0").getByRole("checkbox"),
},
},
Intensity: {
block: page.locator("#action-menu").getByText("Intensity"),
"Simple Intensity": {
block: page.locator("#action-menu").getByText("Simple Intensity"),
elements: {
"LED Number": page.getByLabel("LED Number"),
Element: page.getByLabel("Element"),
Layer: page.getByLabel("Layer"),
Intensity: page.getByLabel("Intensity"),
},
Expand Down
7 changes: 6 additions & 1 deletion playwright-tests/data/actionBlocks.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
{
"Function": ["Function"],
"variables": ["Lookup", "Global", "Locals", "Self"],
"led": ["Start Animation", "Stop Animation", "Color", "Intensity"],
"led": [
"Start Animation",
"Stop Animation",
"Simple Color",
"Simple Intensity"
],
"midi": ["MIDI", "MIDI 14", "SysEX", "MIDI NRPN"],
"hid": [
"GamePad Axis",
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 @@ -142,7 +142,7 @@ test.describe("Interactable input field", () => {
const fieldCount = await inputFields.count();
const monacoCount = await monacoFields.count();

const expectedValue = "123";
const expectedValue = "test";

// Loop through monaco fields and interact with them
for (let i = 0; i < monacoCount; i++) {
Expand All @@ -153,7 +153,7 @@ test.describe("Interactable input field", () => {
await keyboardActions.selectAll();
await keyboardActions.type(expectedValue);
const value = await monacoField.innerText();
expect(value).toMatch("123");
expect(value).toMatch("test");
}

// Loop through input fields and interact with them
Expand Down
4 changes: 2 additions & 2 deletions playwright-tests/tests/actionsOperation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ test.describe("Action Block Operations", () => {

test("Add Action Block to empty element", async () => {
await configPage.openActionsOnEmptyElement();
await configPage.addActionBlock("led", "Color");
await configPage.addActionBlock("led", "Simple Color");
await expect(
configPage.blocks["led"]["Color"]["elements"]["Blue"],
configPage.blocks["led"]["Simple Color"]["elements"]["Blue"],
).toBeVisible();
});

Expand Down
284 changes: 0 additions & 284 deletions src/renderer/config-blocks/LedColor.svelte

This file was deleted.

Loading
Loading