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

Can we save the "debug" preview as an image snapshot? #291

Open
sibelius opened this issue Feb 16, 2023 · 1 comment
Open

Can we save the "debug" preview as an image snapshot? #291

sibelius opened this issue Feb 16, 2023 · 1 comment
Labels
feature request Request a new feature

Comments

@sibelius
Copy link

Is your feature request related to a problem? Please describe.

It is not a problem.

It helps us understand if something changed in the UI of our tests.

Like a regression UI test

Describe the solution you'd like

Another command saveSnapshot() similar to jest .toMatchSnapshot() that saves an image colocated to the test file

Describe how should jest-preview implements this feature

Take a screenshot from the browser that jest-preview opens

Describe alternatives you've considered

There are other packages doing this, but neither as easy to use

Additional context

Just an improvement for this awesome package

@sibelius sibelius added the feature request Request a new feature label Feb 16, 2023
@nvh95
Copy link
Owner

nvh95 commented Feb 17, 2023

@sibelius Thanks for your suggestion. I was about to implement this but haven't finished yet. Instead of saving an image, I was thinking of saving an HTML file. The draft work can be seen in #219

I will give you an update when there is any new update.

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

No branches or pull requests

2 participants