From 89f29b00c0bf16a274eeba9deb68eb042353251f Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Wed, 23 Feb 2022 12:32:16 +0000 Subject: [PATCH] Increasing wait times for Assign User Roles test Assign Roles test within createUserAndRoles is failing on CI. It is not failing locally for me so i suspect a timing issue --- .../builder/cypress/integration/createUserAndRoles.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/builder/cypress/integration/createUserAndRoles.spec.js b/packages/builder/cypress/integration/createUserAndRoles.spec.js index 79367011bb..2c55cf9e02 100644 --- a/packages/builder/cypress/integration/createUserAndRoles.spec.js +++ b/packages/builder/cypress/integration/createUserAndRoles.spec.js @@ -46,7 +46,7 @@ filterTests(['smoke', 'all'], () => { cy.get(".spectrum-Table-body").eq(1).find('tr').eq(0).click() cy.wait(500) cy.get(".spectrum-Dialog-grid").contains("Choose an option").click().then(() => { - cy.wait(500) + cy.wait(1000) if (i == 0) { cy.get(".spectrum-Popover").contains("Admin").click() } @@ -56,12 +56,12 @@ filterTests(['smoke', 'all'], () => { if (i == 2) { cy.get(".spectrum-Popover").contains("Basic").click() } - cy.wait(500) + cy.wait(1000) cy.get(".spectrum-Button").contains("Update role").click({ force: true }) }) } // Confirm roles exist within Configure roles table - cy.wait(500) + cy.wait(2000) cy.get(".spectrum-Table-body").eq(0).within((assginedRoles) => { expect(assginedRoles).to.contain("Admin") expect(assginedRoles).to.contain("Power")