From 0c006e133960a55c886cdac0e3cc2bfad3a93a26 Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Tue, 27 Jul 2021 14:29:06 +0200 Subject: [PATCH 1/4] convert automation icons into toggle --- .../automation/SetupPanel/SetupPanel.svelte | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte index ff3874a919..25d0839d2a 100644 --- a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte @@ -1,7 +1,7 @@
{ @@ -18,5 +19,5 @@ - + diff --git a/packages/builder/cypress/integration/createAutomation.spec.js b/packages/builder/cypress/integration/createAutomation.spec.js index 75611eff06..e82eeff670 100644 --- a/packages/builder/cypress/integration/createAutomation.spec.js +++ b/packages/builder/cypress/integration/createAutomation.spec.js @@ -29,10 +29,10 @@ context("Create a automation", () => { cy.get(".setup").within(() => { cy.get(".spectrum-Picker-label").click() cy.contains("dog").click() - cy.get("input") + cy.get(".spectrum-Textfield-input") .first() .type("goodboy") - cy.get("input") + cy.get(".spectrum-Textfield-input") .eq(1) .type("11") }) @@ -41,7 +41,7 @@ context("Create a automation", () => { cy.contains("Save Automation").click() // Activate Automation - cy.get("[aria-label=PlayCircle]").click() + cy.get("[data-cy=activate-automation]").click() }) it("should add row when a new row is added", () => { diff --git a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte index c6235f6f40..06a0df1afa 100644 --- a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte @@ -51,7 +51,7 @@ setAutomationLive(!automationLive)} - data-cy="activate-automation" + dataCy="activate-automation" text="Live" />
From 97537838669b8e640c6390d715e4196cdee88b8e Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Wed, 28 Jul 2021 00:06:03 +0200 Subject: [PATCH 4/4] fix lint issue --- packages/bbui/src/Form/Core/Switch.svelte | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/bbui/src/Form/Core/Switch.svelte b/packages/bbui/src/Form/Core/Switch.svelte index a19675d872..667b2ab871 100644 --- a/packages/bbui/src/Form/Core/Switch.svelte +++ b/packages/bbui/src/Form/Core/Switch.svelte @@ -12,7 +12,6 @@ const onChange = event => { dispatch("change", event.target.checked) } -