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

Question: Attach selenium test's screenshots in report #50

Closed
deepticake opened this issue Aug 2, 2018 · 3 comments
Closed

Question: Attach selenium test's screenshots in report #50

deepticake opened this issue Aug 2, 2018 · 3 comments

Comments

@deepticake
Copy link

How can we attach selenium test's screenshots in Jest HTML Report?

@deepticake deepticake changed the title Feature Request: Attach selenium test's screenshots in report Question: Attach selenium test's screenshots in report Aug 2, 2018
@Hargne
Copy link
Owner

Hargne commented Aug 2, 2018

Hi,

This is not a feature available right now, however I do like the idea of having the option to add custom content to the test report.
One question though: are the screenshots tied to the individual test cases or is it a single file containing the summary?

@deepticake
Copy link
Author

The screenshots are tied to the individual test case.
In my case, I use stucumber to write feature files with scenarios.
The screenshot is generated after every scenario runs.

@Hargne
Copy link
Owner

Hargne commented Aug 3, 2018

Hi,

Adding custom content to each Jest test case is unfortunately not as easy as it sounds. This has already been asked in #36 and the solution would be something similar for this one.

Until the Jest test context is exposed from within each test case, the best bet would be to alter the HTML report programatically and add the images after it has been rendered.

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

No branches or pull requests

2 participants