Updating datasourceWizard & revertApp
datasourceWizard -Making test env only based on datasource usage revertApp -Updating a click function
This commit is contained in:
parent
eea2a228a4
commit
2182de8b4a
|
@ -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