Updating datasourceWizard & revertApp
datasourceWizard -Making test env only based on datasource usage revertApp -Updating a click function
This commit is contained in:
parent
9a80482ee5
commit
05b7e3c5aa
|
@ -2,6 +2,7 @@ import filterTests from "../../support/filterTests"
|
||||||
|
|
||||||
filterTests(['all'], () => {
|
filterTests(['all'], () => {
|
||||||
context("Datasource Wizard", () => {
|
context("Datasource Wizard", () => {
|
||||||
|
if (Cypress.env("TEST_ENV")) {
|
||||||
before(() => {
|
before(() => {
|
||||||
cy.login()
|
cy.login()
|
||||||
cy.createTestApp()
|
cy.createTestApp()
|
||||||
|
@ -36,6 +37,7 @@ filterTests(['all'], () => {
|
||||||
cy.wait("@datasourceConnection")
|
cy.wait("@datasourceConnection")
|
||||||
cy.get("@datasourceConnection").its('response.body')
|
cy.get("@datasourceConnection").its('response.body')
|
||||||
.should('have.property', 'status', 500)
|
.should('have.property', 'status', 500)
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
@ -54,7 +54,7 @@ filterTests(['smoke', 'all'], () => {
|
||||||
it("should enter incorrect app name when reverting", () => {
|
it("should enter incorrect app name when reverting", () => {
|
||||||
// Click Revert
|
// Click Revert
|
||||||
cy.get(".toprightnav").within(() => {
|
cy.get(".toprightnav").within(() => {
|
||||||
cy.get(".spectrum-Icon").eq(1).click()
|
cy.get(".spectrum-Icon").eq(1).click({ force: true })
|
||||||
})
|
})
|
||||||
// Enter incorrect app name
|
// Enter incorrect app name
|
||||||
cy.get(".spectrum-Dialog-grid").within(() => {
|
cy.get(".spectrum-Dialog-grid").within(() => {
|
||||||
|
|
Loading…
Reference in New Issue