From abbb487dd207f480888337fcac0519a53b39afb9 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Wed, 11 May 2022 23:14:06 +0100 Subject: [PATCH] Increase wait for addComponent Sometimes after adding a component, the incorrect component ID is selected, causing test fails. This wait should allow the correct component ID to be selected --- packages/builder/cypress/support/commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index 6bd1d0db3a..74f3f00ed0 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -250,7 +250,7 @@ Cypress.Commands.add("addComponent", (category, component) => { if (component) { cy.get(`[data-cy="component-${component}"]`).click({ force: true }) } - cy.wait(2000) + cy.wait(5000) cy.location().then(loc => { const params = loc.pathname.split("/") const componentId = params[params.length - 1]