Updating datasourceWizard & revertApp

datasourceWizard
-Making test env only based on datasource usage

revertApp
-Updating a click function
This commit is contained in:
Mitch-Budibase 2022-02-18 18:46:58 +00:00
parent eea2a228a4
commit 2182de8b4a
2 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,7 @@ import filterTests from "../../support/filterTests"
filterTests(['all'], () => {
context("Datasource Wizard", () => {
if (Cypress.env("TEST_ENV")) {
before(() => {
cy.login()
cy.createTestApp()
@ -37,5 +38,6 @@ filterTests(['all'], () => {
cy.get("@datasourceConnection").its('response.body')
.should('have.property', 'status', 500)
})
}
})
})

View File

@ -54,7 +54,7 @@ filterTests(['smoke', 'all'], () => {
it("should enter incorrect app name when reverting", () => {
// Click Revert
cy.get(".toprightnav").within(() => {
cy.get(".spectrum-Icon").eq(1).click()
cy.get(".spectrum-Icon").eq(1).click({ force: true })
})
// Enter incorrect app name
cy.get(".spectrum-Dialog-grid").within(() => {