From ca8eaf0df375029cd8f6463add07dca5d51bd338 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Fri, 21 Jan 2022 18:40:32 +0000 Subject: [PATCH] AutoScreens Test update increasing wait time for createAutogeneratedScreens command -associated with auto screens tests --- packages/builder/cypress/integration/autoScreensUI.spec.js | 4 ++-- packages/builder/cypress/support/commands.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/cypress/integration/autoScreensUI.spec.js b/packages/builder/cypress/integration/autoScreensUI.spec.js index d67ade571a..ab65e6561f 100644 --- a/packages/builder/cypress/integration/autoScreensUI.spec.js +++ b/packages/builder/cypress/integration/autoScreensUI.spec.js @@ -11,7 +11,7 @@ filterTests(['smoke', 'all'], () => { // Create autogenerated screens from the internal table cy.createAutogeneratedScreens(["Cypress Tests"]) // Confirm screens have been auto generated - cy.get(".nav-items-container").contains("cypress-tests").click() + cy.get(".nav-items-container").contains("cypress-tests").click({ force: true }) cy.get(".nav-items-container").should('contain', 'cypress-tests/:id') .and('contain', 'cypress-tests/new/row') }) @@ -24,7 +24,7 @@ filterTests(['smoke', 'all'], () => { // Create autogenerated screens from the internal tables cy.createAutogeneratedScreens([initialTable, secondTable]) // Confirm screens have been auto generated - cy.get(".nav-items-container").contains("cypress-tests").click() + cy.get(".nav-items-container").contains("cypress-tests").click({ force: true }) // Previously generated tables are suffixed with numbers - as expected cy.get(".nav-items-container").should('contain', 'cypress-tests-2/:id') .and('contain', 'cypress-tests-2/new/row') diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index c735f03747..0ca0f21b04 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -264,7 +264,7 @@ Cypress.Commands.add("createAutogeneratedScreens", screenNames => { cy.get(".item").contains(screenNames[i]).click() } cy.get(".spectrum-Button").contains("Add Screens").click({ force: true }) - cy.wait(2000) + cy.wait(4000) }) Cypress.Commands.add("addRow", values => {