haim-io / cypress-image-diff

Visual regression test with cypress
MIT License
240 stars 62 forks source link

Ability to reverse error - throw error if snapshots are the same and continue the test on different ones #214

Closed Razthyae closed 3 weeks ago

Razthyae commented 3 months ago

In my app I actually need a functionality which is opposite to what cypress-image-diff does. Instead of throwing error whenever snapshot is different from baseline snapshot I want to throw errors only when taken snapshot is THE SAME as baseline (with some testTreshold as well). If baseline snapshot is different from comparison snapshot then test should continue normally.

How do I achieve that?

kien-ht commented 2 months ago

@Razthyae Hi, on top of my head there's no way around this at the moment unfortunately. Could you elaborate on your case? Just to see if it's a solid use case for this feature

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 3 weeks ago

This issue was closed because it has been inactive for 30 days since being marked as stale.