estruyf / playwright-github-actions-reporter

GitHub Actions reporter for Playwright
https://www.npmjs.com/package/@estruyf/github-actions-reporter
MIT License
40 stars 2 forks source link

Enhancement: Add the image attachments to the table #19

Open estruyf opened 2 months ago

estruyf commented 2 months ago

Add the image attachments to the job summary table

image

To support this, you'll need to upload the image to an Azure Storage Account or an AWS S3 Bucket.

GRA0007 commented 2 weeks ago

I want to provide my current setup as I'm looking for a way to integrate this with it. Essentially we have an s3 bucket that we upload our screenshots to when the tests run on the main branch, and when they run on any other branch, those screenshots are downloaded and used as the baseline.

I've set up a folder in that bucket that will automatically delete anything inside it after 30 days, so I'd like to upload the expected/actual/diff groups when tests fail to that folder so they can be linked in the test results markdown. I haven't actually built this functionality yet because I came across this repo and this specific issue and it seems to be exactly what I'm looking for.

estruyf commented 1 week ago

@GRA0007 I have just released a beta version with the above functionality where images can be uploaded to a blob service. Currently, only Azure Storage is supported.

The code has been written to support other service as well in the future.

Check out the docs to see how it works: https://github.com/estruyf/playwright-github-actions-reporter/tree/dev?tab=readme-ov-file#showing-result-attachments

Let me know what you think.