meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
491 stars 116 forks source link

Add padding support to screenshots #110

Closed cwmrowe closed 4 years ago

cwmrowe commented 4 years ago

Cypress have added a padding option to their screenshots API which is really useful for capturing drop shadows around an element etc. I think this one line is all that's required to enable it in this plugin.