Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
nimya-aot committed May 27, 2024
1 parent ed2984d commit e966485
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tests/functional/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { defineConfig } = require('cypress')

module.exports = defineConfig({
env: {
depEnv: '',
depEnv: 'app',
auth_base_url: 'http://localhost:8082',
auth_realm: 'chefs',
auth_client_id: 'chefs-frontend',
Expand All @@ -25,8 +25,8 @@ module.exports = defineConfig({
// return require('./plugins/index.js')(on, config)

//baseUrl: 'http://localhost:5173',
//baseUrl:'https://chefs-dev.apps.silver.devops.gov.bc.ca',
baseUrl: process.env.CUSTOM_URL,
baseUrl:'https://chefs-dev.apps.silver.devops.gov.bc.ca',
//baseUrl: process.env.CUSTOM_URL,
specPattern: 'cypress/e2e/*.cy.{js,jsx,ts,tsx}',
testIsolation: false,

Expand Down
5 changes: 3 additions & 2 deletions tests/functional/cypress/e2e/about.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const baseUrl = Cypress.env('baseUrl');
describe('Application About Page', () => {
it('Visits the app about page', () => {

if(depEnv=="")
if(depEnv=="app")
{

cy.visit(`https://chefs-dev.apps.silver.devops.gov.bc.ca/app`);
Expand All @@ -15,7 +15,8 @@ describe('Application About Page', () => {
else
{

cy.visit(`https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-${depEnv}`);
//cy.visit(`https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-${depEnv}`);
cy.visit(`/pr-${depEnv}`);
cy.contains('Create, publish forms, and receive submissions with the Common Hosted Forms Service.').should('be.visible');

}
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/cypress/support/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export function formsettings(){
else
{

cy.visit(`https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-${depEnv}`);
//cy.visit(`https://chefs-dev.apps.silver.devops.gov.bc.ca/pr-${depEnv}`);
cy.visit(`/pr-${depEnv}`);
}

cy.get('[data-test="base-auth-btn"] > .v-btn > .v-btn__content > span').click();
Expand Down

0 comments on commit e966485

Please sign in to comment.