meinaart / cypress-plugin-snapshots

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

Configuration to format naming of all image snapshots #177

Open anthonytranDev opened 3 years ago

anthonytranDev commented 3 years ago

Is your feature request related to a problem? Please describe. Having to manually name all images

Describe the solution you'd like It would be nice if you there was some formatting option, that enable you to auto name all images, i.e. for pages or components.

Describe alternatives you've considered Current solution would have to pass an options object to toMatchImageSnapshot

{
  "name": "shiftsByVan-",            // Naming resulting image file with a custom name rather than concatenating test titles
  "separator": "custom image separator",  // Naming resulting image file with a custom separator rather than using the default ` #`
}