Skip to content

Commit

Permalink
[Cypress] Only run DB 2018 and 2019 on Prod
Browse files Browse the repository at this point in the history
  • Loading branch information
meissadia committed Apr 9, 2021
1 parent ac68e60 commit bdb58cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions cypress/integration/data-browser/2018.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const { HOST, ENVIRONMENT } = Cypress.env()
const dbUrl = dbURL.bind(null, HOST)

describe('Data Browser 2018', function () {
if(isCI(ENVIRONMENT)) it("Does not run on CI")
else if((!isBeta(HOST) || (isBeta(HOST) && !isProd(HOST)))){
if(!isProd(HOST)) it("Only runs in Production")
else {
it('State/Institution/PropertyType', function () {
cy.get({ HOST, ENVIRONMENT }).logEnv()
cy.viewport(1000, 940)
Expand Down Expand Up @@ -171,7 +171,5 @@ describe('Data Browser 2018', function () {
})
}
})
} else {
it(`does not run on host: ${HOST}`)
}
})
6 changes: 2 additions & 4 deletions cypress/integration/data-browser/2019.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const { HOST, ENVIRONMENT } = Cypress.env()
const dbUrl = dbURL.bind(null, HOST)

describe('Data Browser 2019', function () {
if(isCI(ENVIRONMENT)) it("Does not run on CI")
else if(!isBeta(HOST)){
if(!isProd(HOST)) it("Only runs in Production")
else {
it('State/Institution/PropertyType', function () {
cy.get({ HOST, ENVIRONMENT }).logEnv()
cy.viewport(1000, 940)
Expand Down Expand Up @@ -172,7 +172,5 @@ describe('Data Browser 2019', function () {
})
}
})
} else {
it(`does not run on host: ${HOST}`)
}
})

0 comments on commit bdb58cb

Please sign in to comment.