cypress-plugin-snapshots icon indicating copy to clipboard operation
cypress-plugin-snapshots copied to clipboard

Configuration to format naming of all image snapshots

Open anthonytranDev opened this issue 3 years ago • 0 comments

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 ` #`
}

anthonytranDev avatar Apr 14 '21 12:04 anthonytranDev