Adding applitools to inegration tests

This commit is contained in:
Knut Sveidqvist
2022-05-10 20:33:55 +02:00
parent 8889b05d29
commit eadbf595ba
14 changed files with 1011 additions and 49 deletions

View File

@@ -17,7 +17,16 @@
// }
const { addMatchImageSnapshotPlugin } = require('cypress-image-snapshot/plugin');
require('@applitools/eyes-cypress')(module);
module.exports = (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;
};
require('@applitools/eyes-cypress')(module);