Skip to content

Commit

Permalink
Upgrade Cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorel-35 committed Jun 19, 2022
1 parent 8f8c685 commit 648b15b
Show file tree
Hide file tree
Showing 27 changed files with 430 additions and 445 deletions.
20 changes: 20 additions & 0 deletions cypress.config.js
@@ -0,0 +1,20 @@
const { defineConfig } = require('cypress');
const { addMatchImageSnapshotPlugin } = require('cypress-image-snapshot/plugin');
require('@applitools/eyes-cypress')(module);

module.exports = defineConfig({
e2e: {
specPattern: 'cypress/e2e/**/*.{js,jsx,ts,tsx}',
setupNodeEvents(on, config) {
addMatchImageSnapshotPlugin(on, config);
// copy any needed variables from process.env to config.env
config.env.useAppli = process.env.USE_APPLI ? true : false;
config.env.codeBranch = process.env.APPLI_BRANCH;

// do not forget to return the changed config object!
return config;
},
supportFile: 'cypress/support/index.js',
},
video: false,
});
3 changes: 0 additions & 3 deletions cypress.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 648b15b

Please sign in to comment.