Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Use the original image on retry #162

Closed Answered by FRSgit
sheremet-va asked this question in Q&A
Discussion options

I've noticed that when test is retried, I get a new image for each retry. Is it possible to use the same image for comparing? For example, this test:

let retries = 0
it('retry', () => {
 cy.get('article').matchImage({
 title: 'custom',
 }).then(() => {
 retries++
 if (retries < 3) {
 throw new Error('error')
 }
 })
})

creates a new screenshot for each retry, when I already have screenshot in folder.

// cypress.config.ts
export default {
 retries: {
 runMode: 5,
 openMode: 0,
 }
}
You must be logged in to vote

Hey @sheremet-va, I believe this issue should be fixed in new release: 3.0.2 - please give it a try!

Replies: 1 comment

Comment options

Hey @sheremet-va, I believe this issue should be fixed in new release: 3.0.2 - please give it a try!

You must be logged in to vote
0 replies
Answer selected by FRSgit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /