Browse Source
Merge pull request #4751 from Budibase/cypress-testing
Changes for Table test - Commands.js
pull/4711/head
Mitch-Budibase
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
packages/builder/cypress/support/commands.js
|
|
|
@ -39,7 +39,7 @@ Cypress.Commands.add("createApp", name => { |
|
|
|
cy.get(".spectrum-Modal").within(() => { |
|
|
|
cy.get("input").eq(0).type(name).should("have.value", name).blur() |
|
|
|
cy.get(".spectrum-ButtonGroup").contains("Create app").click() |
|
|
|
cy.wait(5000) |
|
|
|
cy.wait(10000) |
|
|
|
}) |
|
|
|
cy.createTable("Cypress Tests", true) |
|
|
|
}) |
|
|
|
@ -116,10 +116,10 @@ Cypress.Commands.add("createTestTableWithData", () => { |
|
|
|
Cypress.Commands.add("createTable", (tableName, initialTable) => { |
|
|
|
if (!initialTable) { |
|
|
|
cy.navigateToDataSection() |
|
|
|
cy.get(".add-button").click() |
|
|
|
cy.get(`[data-cy="new-table"]`).click() |
|
|
|
} |
|
|
|
cy.wait(7000) |
|
|
|
cy.get(".spectrum-Modal") |
|
|
|
cy.wait(5000) |
|
|
|
cy.get(".spectrum-Dialog-grid") |
|
|
|
.contains("Budibase DB") |
|
|
|
.click({ force: true }) |
|
|
|
.then(() => { |
|
|
|
|