Skip to content

Commit

Permalink
Added CI in cypress vtex environment variables (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
Syed-Vtex authored Mar 9, 2023
1 parent 7ef8d22 commit 6242428
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## [Unreleased]

### Added

- Added CI in cypress vtex environment variables


### Changed

- Increasse delay for address type
Expand Down
2 changes: 2 additions & 0 deletions node/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ exports.getConfig = async (configFile) => {
if (system.isCI()) {
logger.msgWarn('Running in CI mode')
// Enforce config to avoid misconfiguration
config.base.vtex.isCI = true
config.base.cypress.devMode = false
config.base.cypress.runHeaded = false
config.base.cypress.quiet = true
Expand All @@ -89,6 +90,7 @@ exports.getConfig = async (configFile) => {
config.envs.push('DISPLAY: :99')
config.envs.push('NODE_NO_WARNINGS: 1')
} else {
config.base.vtex.isCI = false
// Clean debug
logger.msgOk('Cleaning debug file')
storage.delete(system.debugFile())
Expand Down

0 comments on commit 6242428

Please sign in to comment.