I need to include in my test scenarios a way to determine which environment they are being executed in. We have BVT (build verification test) and a UAT (user Acceptance Test) environments. Within our solution we have environment.ts files for each of our environments and I have access to the files:
- environment.bvt.ts
- environment.uat.ts
- environment.ts
My question is:
- How do I alter my test so that when it runs in a particular environment (through a Bamboo CI build)
Example of my login test is below
describe('Environment', function (){
it('Environment selection', function (){
cy.visit('https://bvt-riskassessment.lmkcloud.net')
cy.get('span.mat-button-wrapper').contains('Log In').click()
}
)
})