From fa5bd98621e168fd59132b48e41f45640d743cf2 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Mon, 16 May 2022 14:59:46 +0100 Subject: [PATCH 1/2] Increase wait for addDatasourceConfig function Timing issue against the nightly smoke build. This should help with it --- 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..e2e3850259 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -573,7 +573,7 @@ Cypress.Commands.add("addDatasourceConfig", (datasource, skipFetch) => { cy.get(".spectrum-Button") .contains("Save and fetch tables") .click({ force: true }) - cy.wait(1000) + cy.wait(3000) }) } }) From 3ea297c5fc717c3550664e535ce7f5ba17ec560e Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Mon, 16 May 2022 15:16:04 +0100 Subject: [PATCH 2/2] Adding retries capabilities Tests in Cypress run mode will retry up to 2 times (Beneficial for the smoke build flakey tests) Tests in Cypress open mode will not retry (more ideal for local testing) --- packages/builder/cypress.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/builder/cypress.json b/packages/builder/cypress.json index 3e4d4c4d1b..0828c9987b 100644 --- a/packages/builder/cypress.json +++ b/packages/builder/cypress.json @@ -7,5 +7,9 @@ "WORKER_PORT": "4200", "JWT_SECRET": "test", "HOST_IP": "" + }, + "retries": { + "runMode": 2, + "openMode": 0 } }