diff --git a/packages/driver/cypress/plugins/index.js b/packages/driver/cypress/plugins/index.js index c766dba708fa..e2748a990fe3 100644 --- a/packages/driver/cypress/plugins/index.js +++ b/packages/driver/cypress/plugins/index.js @@ -63,6 +63,20 @@ module.exports = (on, config) => { return null }, 'check:screenshot:size' ({ name, width, height, devicePixelRatio }) { + console.log('expected screenshot path', path.join(__dirname, '..', 'screenshots', name)) + console.log('screenshotfolder', config?.screenshotsFolder) + fs.readdirSync(config?.screenshotsFolder).forEach((file) => { + console.log(file) + }) + + console.log('done listing dirs') + + fs.readdirSync(path.join(config?.screenshotsFolder, 'e2e')).forEach((file) => { + console.log(file) + }) + + console.log('done listing screenshots') + return Jimp.read(path.join(__dirname, '..', 'screenshots', name)) .then((image) => { width = width * devicePixelRatio diff --git a/system-tests/projects/e2e/cypress/plugins/index.js b/system-tests/projects/e2e/cypress/plugins/index.js index 827a05a6c382..9122c73fb230 100644 --- a/system-tests/projects/e2e/cypress/plugins/index.js +++ b/system-tests/projects/e2e/cypress/plugins/index.js @@ -151,6 +151,8 @@ module.exports = (on, config) => { }, 'check:screenshot:size' ({ name, width, height, devicePixelRatio }) { + console.log('expected screenshot path', path.join(__dirname, '..', 'screenshots', name)) + return Jimp.read(path.join(__dirname, '..', 'screenshots', name)) .then((image) => { width = width * devicePixelRatio