diff --git a/packages/bbui/src/Form/Core/Switch.svelte b/packages/bbui/src/Form/Core/Switch.svelte index 0d40e67007..667b2ab871 100644 --- a/packages/bbui/src/Form/Core/Switch.svelte +++ b/packages/bbui/src/Form/Core/Switch.svelte @@ -6,6 +6,7 @@ export let id = null export let text = null export let disabled = false + export let dataCy = null const dispatch = createEventDispatcher() const onChange = event => { @@ -15,6 +16,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 ff3874a919..06a0df1afa 100644 --- a/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte +++ b/packages/builder/src/components/automation/SetupPanel/SetupPanel.svelte @@ -1,7 +1,7 @@