Skip to content

Commit

Permalink
fixing pokeshop url variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xoscar committed May 30, 2023
1 parent 7abaa28 commit b036096
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion web/cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ module.exports = defineConfig({
return require('./cypress/plugins/index.js')(on, config);
},
specPattern: 'cypress/e2e/**/*.spec.{js,ts,jsx,tsx}',
baseUrl: process.env.CYPRESS_BASE_URL ||'http://localhost:3000',
baseUrl: process.env.CYPRESS_BASE_URL || 'http://localhost:3000',
},
env: {
pokemonApiUrl: process.env.POKEMON_HTTP_ENDPOINT || 'http://demo-pokemon-api.demo.svc.cluster.local',
},
// @ts-ignore
component: {
Expand Down
2 changes: 1 addition & 1 deletion web/cypress/e2e/constants/Test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const POKEMON_HTTP_ENDPOINT = process.env.POKEMON_HTTP_ENDPOINT || 'http://demo-pokemon-api.demo.svc.cluster.local';
export const POKEMON_HTTP_ENDPOINT = Cypress.env('pokemonApiUrl');
export const PokeshopDemo = [
{
name: 'Pokeshop - List',
Expand Down

0 comments on commit b036096

Please sign in to comment.