From 2f78afac6d8d33264a7167aac083693777219199 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 23 Feb 2021 14:28:05 +0000 Subject: [PATCH] Fix cypress test --- .../integration/createAutomation.spec.js | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/packages/builder/cypress/integration/createAutomation.spec.js b/packages/builder/cypress/integration/createAutomation.spec.js index 92d1f907bd..efc185be7c 100644 --- a/packages/builder/cypress/integration/createAutomation.spec.js +++ b/packages/builder/cypress/integration/createAutomation.spec.js @@ -17,23 +17,33 @@ context("Create a automation", () => { cy.get("[data-cy=new-automation]").click() cy.get(".modal").within(() => { cy.get("input").type("Add Row") - cy.get(".buttons").contains("Create").click() + cy.get(".buttons") + .contains("Create") + .click() }) // Add trigger cy.contains("Trigger").click() - cy.contains("Row Saved").click() + cy.contains("Row Created").click() cy.get(".setup").within(() => { - cy.get("select").first().select("dog") + cy.get("select") + .first() + .select("dog") }) // Create action cy.contains("Action").click() cy.contains("Create Row").click() cy.get(".setup").within(() => { - cy.get("select").first().select("dog") - cy.get("input").first().type("goodboy") - cy.get("input").eq(1).type("11") + cy.get("select") + .first() + .select("dog") + cy.get("input") + .first() + .type("goodboy") + cy.get("input") + .eq(1) + .type("11") }) // Save