1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00

Fix table cypress tests

This commit is contained in:
Andrew Kingston 2020-10-07 11:23:47 +01:00
parent aa96388e0b
commit 6c3aeac69a
2 changed files with 2 additions and 1 deletions

View file

@ -8,7 +8,7 @@ context("Create a Table", () => {
cy.createTable("dog")
// Check if Table exists
cy.get(".title").should("have.text", "dog")
cy.get(".title span").should("have.text", "dog")
})
it("adds a new column to the table", () => {

View file

@ -68,6 +68,7 @@ Cypress.Commands.add("createTable", tableName => {
cy.contains("Create New Table").click()
cy.get(".menu-container")
.get("input")
.first()
.type(tableName)
cy.contains("Save").click()