Browse Source

Fix table cypress tests

gh-pages
Andrew Kingston 6 years ago
parent
commit
6c3aeac69a
  1. 2
      packages/builder/cypress/integration/createTable.spec.js
  2. 1
      packages/builder/cypress/support/commands.js

2
packages/builder/cypress/integration/createTable.spec.js

@ -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", () => {

1
packages/builder/cypress/support/commands.js

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

Loading…
Cancel
Save