Fixing cypress tests
This commit is contained in:
parent
4efd38bd2b
commit
9b57786457
|
@ -66,12 +66,14 @@ Cypress.Commands.add("createTestTableWithData", () => {
|
||||||
Cypress.Commands.add("createTable", tableName => {
|
Cypress.Commands.add("createTable", tableName => {
|
||||||
// Enter model name
|
// Enter model name
|
||||||
cy.contains("Create New Table").click()
|
cy.contains("Create New Table").click()
|
||||||
cy.get(".menu-container")
|
cy.get(".modal").within(() => {
|
||||||
.get("input")
|
cy.get("input")
|
||||||
.first()
|
.first()
|
||||||
.type(tableName)
|
.type(tableName)
|
||||||
|
cy.get(".buttons")
|
||||||
cy.contains("Save").click()
|
.contains("Create")
|
||||||
|
.click()
|
||||||
|
})
|
||||||
cy.contains(tableName).should("be.visible")
|
cy.contains(tableName).should("be.visible")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue