Browse Source
Merge pull request #5595 from Budibase/cypress-testing
Small changes for Smoke Build
master
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
3 additions and
2 deletions
-
packages/builder/cypress/support/commands.js
|
|
|
@ -292,7 +292,7 @@ Cypress.Commands.add("createScreen", (route, accessLevelLabel) => { |
|
|
|
cy.contains("Design").click() |
|
|
|
cy.get("[aria-label=AddCircle]").click() |
|
|
|
cy.get(".spectrum-Modal").within(() => { |
|
|
|
cy.get(".item").contains("Blank screen").click() |
|
|
|
cy.get("[data-cy='blank-screen']").click() |
|
|
|
cy.get(".spectrum-Button").contains("Continue").click({ force: true }) |
|
|
|
cy.wait(500) |
|
|
|
}) |
|
|
|
@ -473,6 +473,7 @@ Cypress.Commands.add("selectExternalDatasource", datasourceName => { |
|
|
|
cy.get(".add-button").click() |
|
|
|
}) |
|
|
|
// Clicks specified datasource & continue
|
|
|
|
cy.wait(1000) |
|
|
|
cy.get(".item-list").contains(datasourceName).click() |
|
|
|
cy.get(".spectrum-Dialog-grid").within(() => { |
|
|
|
cy.get(".spectrum-Button").contains("Continue").click({ force: true }) |
|
|
|
@ -495,7 +496,7 @@ Cypress.Commands.add("addDatasourceConfig", (datasource, skipFetch) => { |
|
|
|
} else { |
|
|
|
cy.get("input") |
|
|
|
.clear({ force: true }) |
|
|
|
.type(Cypress.env("mysql").HOST, { force: true }) |
|
|
|
.type(Cypress.env("HOST_IP"), { force: true }) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|