You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test suite we've built is capable of downloading a pdf and checking for certain texts.
When the pdf generation or a step has failed though we don't really have an idea what might be the issue.
With the usual steps we can just check the attached screenshots but as the pdf is never rendered we can't create a screenshot of it. Instead of rendering the pdf (right now we're just parsing it with pdfjs) I would like to attach the pdf to the report so I can download it and check for any issues after the run has finished.
✨ What's your proposed solution?
Allow PDFs as an attachment media type. Don't display it in the html report but offer a way to download the file (probably just a link to the base64 encoded buffer).
⛏ Have you considered any alternatives or workarounds?
I could try to render the pdf and attach each page as a single image.
Attaching the PDF to the test run will itself work okay:
awaitthis.attach(buffer,'application/pdf');
But this won't be rendered usably in our HTML report at the moment as you've hinted at. This is covered in cucumber/react-components#80, so going to continue tracking that issue (which overs all language implementations). There may be a little work needed here once that’s done.
🤔 What's the problem you're trying to solve?
The test suite we've built is capable of downloading a pdf and checking for certain texts.
When the pdf generation or a step has failed though we don't really have an idea what might be the issue.
With the usual steps we can just check the attached screenshots but as the pdf is never rendered we can't create a screenshot of it. Instead of rendering the pdf (right now we're just parsing it with pdfjs) I would like to attach the pdf to the report so I can download it and check for any issues after the run has finished.
✨ What's your proposed solution?
Allow PDFs as an attachment media type. Don't display it in the html report but offer a way to download the file (probably just a link to the base64 encoded buffer).
⛏ Have you considered any alternatives or workarounds?
I could try to render the pdf and attach each page as a single image.
📚 Any additional context?
This text was originally generated from a template, then edited by hand. You can modify the template here.
The text was updated successfully, but these errors were encountered: