From eb79b2007e406d699de1fe8cabdbdab71aa88fc5 Mon Sep 17 00:00:00 2001 From: Mitch-Budibase Date: Mon, 19 Dec 2022 17:11:43 +0000 Subject: [PATCH] Updating createTable command Changing an ID when asserting a table exists - This change will fix the broken tests within the Cypress build --- packages/builder/cypress/support/commands.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index 278c6504f8..6789529acb 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -461,10 +461,7 @@ Cypress.Commands.add("createTable", (tableName, initialTable) => { cy.get(".nav-item", { timeout: 2000 }) .contains("Budibase DB") .click({ force: true }) - cy.get(".spectrum-Tabs-content", { timeout: 2000 }).should( - "contain", - tableName - ) + cy.get(".nav-item-content", { timeout: 2000 }).should("contain", tableName) }) Cypress.Commands.add("createTestTableWithData", () => {