Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: matchAgainstPath is not work #282

Open
2 of 3 tasks
huangmengjiao-hmj opened this issue Aug 17, 2023 · 0 comments
Open
2 of 3 tasks

[Bug]: matchAgainstPath is not work #282

huangmengjiao-hmj opened this issue Aug 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@huangmengjiao-hmj
Copy link

Describe the Bug

When I use 'matchAgainstPath' to specify the image for comparison, it doesn't work

Steps to reproduce

1.This is a snapshot generated from one of my test cases.
image
2.This is the image generated after I configured the 'matchAgainstPath' path
image
3.This is the method I called, and these two images are in the same directory.
cy.matchImage(
{
screenshotConfig: {
blackout: [''],
},
diffConfig: {
threshold: 0.01,
},
createMissingImages: true,
updateImages: false,
maxDiffThreshold: 0.01,
forceDeviceScaleFactor: true,
matchAgainstPath: './test checkbox disabled checkbox is not disabled #0.png',
}
);
4.This is the test result returned when I executed this test statement. Clearly, it didn't compare with the snapshot I selected. I would like to know if there is a solution to this issue.
image

Expected behavior

I would like to see the comparison result between it and the previous image I selected

Additional context

No response

Package version

3.3.10

Device

pc a component testing

OS and version

Windows 11

Browser and version

chrome 115

Node version

16.17.0

I can work on it by myself

  • Yes
  • No

Code of Conduct

  • I agree to follow this project's Code of Conduct
@huangmengjiao-hmj huangmengjiao-hmj added the bug Something isn't working label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant