fix cypress tests

This commit is contained in:
Martin McKeaveney 2021-02-06 22:41:27 +00:00
parent e8db576002
commit 4fcacc5f1f
2 changed files with 5 additions and 7 deletions

View File

@ -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")

View File

@ -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")