Closed
Description
@wolfi3b reported this in #54 (comment)
If you change toMatchImageSnapshot() setting According to README.md and toMatchImageSnapshot.spec.js, you would write code like below.
cy.visit('/static/stub.html').then(() => {
cy.document().toMatchImageSnapshot({
createDiffImage: false,
threshold: 10000,
thresholdType: 'pixel',
name: 'foobar'
});
});
But it never works as expected. Actually the real implementation needs "imageConfig" key. The Following works expectedly.
cy.visit('/static/stub.html').then(() => {
cy.document().toMatchImageSnapshot({
imageConfig: {
createDiffImage: false,
threshold: 10000,
thresholdType: 'pixel',
},
name: 'foobar'
});
});
Metadata
Metadata
Assignees
Labels
No labels
Activity
Clarify format when overriding options
Clarify format when overriding options
Clarify format when overriding options