From 4fcacc5f1fabb1175c0418bde596e8a6d2edd1a7 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Sat, 6 Feb 2021 22:41:27 +0000 Subject: [PATCH] fix cypress tests --- .../builder/cypress/integration/createTable.spec.js | 2 +- .../builder/cypress/integration/createView.spec.js | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/builder/cypress/integration/createTable.spec.js b/packages/builder/cypress/integration/createTable.spec.js index 8e95016609..d309f4fcb9 100644 --- a/packages/builder/cypress/integration/createTable.spec.js +++ b/packages/builder/cypress/integration/createTable.spec.js @@ -60,7 +60,7 @@ context("Create a Table", () => { }) it("deletes a table", () => { - cy.get(".actions").first().invoke("show").click({ force: true }) + cy.get(".ri-more-line").first().click({ force: true }) cy.get("[data-cy=delete-table]").click() cy.contains("Delete Table").click() cy.contains("dog").should("not.exist") diff --git a/packages/builder/cypress/integration/createView.spec.js b/packages/builder/cypress/integration/createView.spec.js index 60bd8c15d1..06fac6da33 100644 --- a/packages/builder/cypress/integration/createView.spec.js +++ b/packages/builder/cypress/integration/createView.spec.js @@ -106,9 +106,8 @@ context("Create a View", () => { it("renames a view", () => { cy.contains(".nav-item", "Test View") - .find(".actions") - .invoke("show") - .click() + .find(".ri-more-line") + .click({ force: true }) cy.get("[data-cy=edit-view]").click() cy.get(".menu-container").within(() => { cy.get("input").type(" Updated") @@ -119,9 +118,8 @@ context("Create a View", () => { it("deletes a view", () => { cy.contains(".nav-item", "Test View Updated") - .find(".actions") - .invoke("show") - .click() + .find(".ri-more-line") + .click({ force: true }) cy.get("[data-cy=delete-view]").click() cy.contains("Delete View").click() cy.contains("TestView Updated").should("not.be.visible")