From a68b7aaaed13c25b93d310b58058ec5544812371 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Sat, 17 Oct 2020 19:07:12 +0100 Subject: [PATCH] Fix cypress tests --- packages/builder/cypress/support/commands.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index e61f1b38e9..ece9565e18 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -155,9 +155,13 @@ Cypress.Commands.add("navigateToFrontend", () => { Cypress.Commands.add("createScreen", (screenName, route) => { cy.contains("Create New Screen").click() cy.get(".modal").within(() => { - cy.get("input:first").type(screenName) + cy.get("input") + .eq(0) + .type(screenName) if (route) { - cy.get("input:last").type(route) + cy.get("input") + .eq(1) + .type(route) } cy.contains("Create Screen").click() })