meinaart / cypress-plugin-snapshots

Plugin for snapshot tests in Cypress.io
MIT License
497 stars 117 forks source link

pass custom snapshot name #80

Open vospascal opened 4 years ago

vospascal commented 4 years ago

can we add something to support custom name like so

toMatchSnapshot({name: { title: "myname" modify: "replace" // or add }})

or anything along these lines?

vospascal commented 4 years ago

i see now in the code this sould be suported toMatchSnapshot({name: "myname"}).

this doesnt work..

vospascal commented 4 years ago

look like no options are respected also replace doenst seem to work

vospascal commented 4 years ago

any update or plants to check the problem? Issues look to be in active.

kmsauter commented 4 years ago

It was implemented for toMatchImageSnapshot but not for toMatchSnapshot, I just implemented it for the latter.