From a5c8219034b4e14006ba28dfbedf285ffa7852f6 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Fri, 22 Jul 2022 17:39:38 +0100 Subject: [PATCH] Update command file Including a wait which seems necessary when logging in for the first time --- packages/builder/cypress/support/commands.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index 65126bc3d2..cc92ca280a 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -5,6 +5,7 @@ Cypress.on("uncaught:exception", () => { // ACCOUNTS & USERS Cypress.Commands.add("login", (email, password) => { cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 10000 }) + cy.wait(2000) cy.url().then(url => { if (url.includes("builder/admin")) { // create admin user