From b81dac0a11cf7d7853c6ef81f75ddb22de3b6c03 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 15 Oct 2020 08:17:26 +0100 Subject: [PATCH] Fix cypress tests --- packages/builder/cypress/integration/createTable.spec.js | 2 ++ packages/builder/cypress/support/commands.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/builder/cypress/integration/createTable.spec.js b/packages/builder/cypress/integration/createTable.spec.js index 0f57d56f3e..16ee67cc5b 100644 --- a/packages/builder/cypress/integration/createTable.spec.js +++ b/packages/builder/cypress/integration/createTable.spec.js @@ -27,6 +27,8 @@ context("Create a Table", () => { cy.get(".actions input") .first() .type("updated") + // Unset table display column + cy.contains("display column").click() cy.contains("Save Column").click() cy.contains("nameupdated").should("have.text", "nameupdated") }) diff --git a/packages/builder/cypress/support/commands.js b/packages/builder/cypress/support/commands.js index cf47051d38..e61f1b38e9 100644 --- a/packages/builder/cypress/support/commands.js +++ b/packages/builder/cypress/support/commands.js @@ -87,6 +87,8 @@ Cypress.Commands.add("addColumn", (tableName, columnName, type) => { cy.get("input") .first() .type(columnName) + // Unset table display column + cy.contains("display column").click() cy.get("select").select(type) cy.contains("Save").click() })