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

Keeps digging up old screenshot / How to regenerate a screenshot? #133

Open
hakunin opened this issue Oct 31, 2024 · 5 comments
Open

Keeps digging up old screenshot / How to regenerate a screenshot? #133

hakunin opened this issue Oct 31, 2024 · 5 comments

Comments

@hakunin
Copy link

hakunin commented Oct 31, 2024

Hey,
I am trying to "regenerate" a screenshot by removing the old one, yet capybara will dig up the old one from somewhere and complain about differences.

Theold one one was made yesterday, I kow it because it has the timestamp on it.

I tried what seems like everything and didn't find any docs on how to "regenerate" a new image.

@pftg
Copy link
Collaborator

pftg commented Oct 31, 2024

Hmm, strange. If there are no screenshots, it will create new ones without a comparison. I'll try to reproduce your case locally.

@hakunin
Copy link
Author

hakunin commented Nov 1, 2024

Thanks, but maybe I can bring some more useful info into this.
Is there any place the screenshot can be cached in, that I can check?

@pftg
Copy link
Collaborator

pftg commented Nov 1, 2024

There is no such stuff, we checkout last version from git per file and store it with suffix base.

@hakunin
Copy link
Author

hakunin commented Nov 1, 2024

Okay that makes sense, but if I want to regenerate the image, I basically need to delete it, commit the change to git and I am good to go. Is this documented somewhere?

@pftg
Copy link
Collaborator

pftg commented Nov 4, 2024

@hakunin, I use the master version, and when I delete screenshots without committing, they are also refreshed. Can you confirm that you do not have caches in the browser?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants