Fix table cypress tests

This commit is contained in:
Andrew Kingston 2020-10-07 11:23:47 +01:00
parent 7c67f18965
commit 97e9883d85
2 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ context("Create a Table", () => {
cy.createTable("dog") cy.createTable("dog")
// Check if Table exists // 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", () => { 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.contains("Create New Table").click()
cy.get(".menu-container") cy.get(".menu-container")
.get("input") .get("input")
.first()
.type(tableName) .type(tableName)
cy.contains("Save").click() cy.contains("Save").click()