Skip to content

Commit

Permalink
test: store local screenshots separately
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 12, 2023
1 parent caef720 commit ff0f4d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
node_modules
/dist
__image_snapshots_local__

# Cordova files
/www
Expand Down
3 changes: 3 additions & 0 deletions cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module.exports = defineConfig({
fixturesFolder: 'tests/e2e/fixtures',
screenshotsFolder: 'tests/e2e/screenshots',
videosFolder: 'tests/e2e/videos',
env: process.env.CI === 'true' ? {} : {
pluginVisualRegressionImagesPath: '{spec_path}/__image_snapshots_local__',
},
e2e: {
specPattern: 'tests/e2e/specs/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'tests/e2e/support/index.js',
Expand Down

0 comments on commit ff0f4d0

Please sign in to comment.