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 9a80482ee5
commit 05b7e3c5aa
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(() => {