|
|
@ -448,10 +448,7 @@ Cypress.Commands.add("createTable", (tableName, initialTable) => { |
|
|
.contains("Continue") |
|
|
.contains("Continue") |
|
|
.click({ force: true }) |
|
|
.click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
cy.get(".spectrum-Modal", { timeout: 10000 }).should( |
|
|
cy.get(".spectrum-Modal").contains("Create Table", { timeout: 10000 }) |
|
|
"not.contain", |
|
|
|
|
|
"Add data source" |
|
|
|
|
|
) |
|
|
|
|
|
cy.get(".spectrum-Modal", { timeout: 2000 }).within(() => { |
|
|
cy.get(".spectrum-Modal", { timeout: 2000 }).within(() => { |
|
|
cy.get("input", { timeout: 2000 }).first().type(tableName).blur() |
|
|
cy.get("input", { timeout: 2000 }).first().type(tableName).blur() |
|
|
cy.get(".spectrum-ButtonGroup").contains("Create").click() |
|
|
cy.get(".spectrum-ButtonGroup").contains("Create").click() |
|
|
@ -742,8 +739,15 @@ Cypress.Commands.add("deleteAllScreens", () => { |
|
|
Cypress.Commands.add("navigateToFrontend", () => { |
|
|
Cypress.Commands.add("navigateToFrontend", () => { |
|
|
// Clicks on Design tab and then the Home nav item
|
|
|
// Clicks on Design tab and then the Home nav item
|
|
|
cy.wait(500) |
|
|
cy.wait(500) |
|
|
|
|
|
cy.intercept("**/preview").as("preview") |
|
|
cy.contains("Design").click() |
|
|
cy.contains("Design").click() |
|
|
cy.get(".spectrum-Search", { timeout: 2000 }).type("/") |
|
|
cy.wait("@preview") |
|
|
|
|
|
cy.get("@preview").then(res => { |
|
|
|
|
|
if (res.statusCode != 200) { |
|
|
|
|
|
cy.reload() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
cy.get(".spectrum-Search", { timeout: 20000 }).type("/") |
|
|
cy.get(".nav-item", { timeout: 2000 }).contains("home").click({ force: true }) |
|
|
cy.get(".nav-item", { timeout: 2000 }).contains("home").click({ force: true }) |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|