Fix cypress test

This commit is contained in:
Andrew Kingston 2021-02-23 14:28:05 +00:00
parent c47ef73a4a
commit 2f78afac6d
1 changed files with 16 additions and 6 deletions

View File

@ -17,23 +17,33 @@ context("Create a automation", () => {
cy.get("[data-cy=new-automation]").click() cy.get("[data-cy=new-automation]").click()
cy.get(".modal").within(() => { cy.get(".modal").within(() => {
cy.get("input").type("Add Row") cy.get("input").type("Add Row")
cy.get(".buttons").contains("Create").click() cy.get(".buttons")
.contains("Create")
.click()
}) })
// Add trigger // Add trigger
cy.contains("Trigger").click() cy.contains("Trigger").click()
cy.contains("Row Saved").click() cy.contains("Row Created").click()
cy.get(".setup").within(() => { cy.get(".setup").within(() => {
cy.get("select").first().select("dog") cy.get("select")
.first()
.select("dog")
}) })
// Create action // Create action
cy.contains("Action").click() cy.contains("Action").click()
cy.contains("Create Row").click() cy.contains("Create Row").click()
cy.get(".setup").within(() => { cy.get(".setup").within(() => {
cy.get("select").first().select("dog") cy.get("select")
cy.get("input").first().type("goodboy") .first()
cy.get("input").eq(1).type("11") .select("dog")
cy.get("input")
.first()
.type("goodboy")
cy.get("input")
.eq(1)
.type("11")
}) })
// Save // Save