Skip to content

Commit

Permalink
revert this commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AtofStryker committed May 13, 2022
1 parent dbbf06a commit bffe6e7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/driver/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions system-tests/projects/e2e/cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bffe6e7

Please sign in to comment.