From 50e81596443e427e0ef53e83f92c199089d3da6d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 5 Oct 2020 12:37:03 +0100 Subject: [PATCH] Fix more cypress tests --- packages/builder/cypress/support/commands.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index 33761bcb99..302a39a367 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -148,12 +148,12 @@ Cypress.Commands.add("navigateToFrontend", () => { }) Cypress.Commands.add("createScreen", (screenName, route) => { - cy.get(".newscreen").click() - cy.get("[data-cy=new-screen-dialog] input:first").type(screenName) - if (route) { - cy.get("[data-cy=new-screen-dialog] input:last").type(route) - } - cy.get("[data-cy=create-screen-footer]").within(() => { + cy.contains("Create New Screen").click() + cy.get(".modal").within(() => { + cy.get("input:first").type(screenName) + if (route) { + cy.get("input:last").type(route) + } cy.contains("Create Screen").click() }) cy.get(".nav-items-container").within(() => {