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

pass custom snapshot name

Open vospascal opened this issue 6 years ago • 4 comments

can we add something to support custom name like so

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

or anything along these lines?

vospascal avatar Nov 28 '19 18:11 vospascal

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

this doesnt work..

vospascal avatar Nov 28 '19 18:11 vospascal

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

vospascal avatar Nov 28 '19 18:11 vospascal

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

vospascal avatar Dec 09 '19 11:12 vospascal

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

kmsauter avatar Dec 09 '19 17:12 kmsauter