From 5ce98f06e35b4107a23fdac81ee167230570ad8d Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Thu, 22 Dec 2022 15:09:32 +0000 Subject: [PATCH] Increasing timeouts for commands Increased timeout values within the following commands: - applicationInAppTable - createTable These will assist with the createApp tests that failed due to timing issues on the CI run --- packages/builder/cypress/support/commands.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index fb22009077..4c44fd6672 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -413,7 +413,7 @@ Cypress.Commands.add("searchForApplication", appName => { // Assumes there are no others Cypress.Commands.add("applicationInAppTable", appName => { cy.visit(`${Cypress.config().baseUrl}/builder`, { timeout: 30000 }) - cy.get(".appTable", { timeout: 5000 }).within(() => { + cy.get(".appTable", { timeout: 30000 }).within(() => { cy.get(".title").contains(appName).should("exist") }) }) @@ -441,7 +441,7 @@ Cypress.Commands.add("createTable", (tableName, initialTable) => { if (!initialTable) { cy.navigateToDataSection() } - cy.get(`[data-cy="new-datasource"]`, { timeout: 2000 }).click() + cy.get(`[data-cy="new-datasource"]`, { timeout: 20000 }).click() cy.wait(2000) cy.get(".item", { timeout: 2000 }) .contains("Budibase DB")