diff --git a/.gitignore b/.gitignore index bd5889e27..7b414fb04 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .DS_Store node_modules /dist +__image_snapshots_local__ # Cordova files /www diff --git a/cypress.config.js b/cypress.config.js index 08b136aa4..b6d2c4fec 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -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',