feat: PDF export, evidence report, date filtering, S3 SSL toggle#174
Open
khanzzirfan wants to merge 3 commits intoCyborgTests:mainfrom
Open
feat: PDF export, evidence report, date filtering, S3 SSL toggle#174khanzzirfan wants to merge 3 commits intoCyborgTests:mainfrom
khanzzirfan wants to merge 3 commits intoCyborgTests:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR delivers several independent improvements across the server:
S3_USE_SSLenv var so users can disable TLS for non-SSL MinIO setups (was hardcodedtrue)Changes
Bug fix
app/lib/storage/s3.ts—useSSLnow reads fromS3_USE_SSLenv var (defaultstrue); was unconditionallytrue, breaking plain-HTTP MinIO deploymentsNew features
PDF / evidence export
app/api/report/[id]/export/route.ts— ZIP and PDF export for a single report (renders the Playwright HTML report SPA via headless Chromium)app/api/download/[id]/route.ts— unified download handler supporting?format=zip|pdf|evidence; theevidenceformat generates a standalone A4 PDF with summary stats, per-test outcome badges, file/line info, and embedded first screenshot per testDockerfile— installschromiumvia apk and setsPLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH; copies all three Playwright packages (@playwright/test,playwright,playwright-core) into the standalone image and creates thenpx playwrightsymlinkDocs
.env.example—S3_USE_SSLdocumentedreadme.md— updated env var table and storage sectionTest plan
S3_USE_SSL=false(plain HTTP endpoint)npx playwright test --project=apipassesnpx playwright test --project=uipassesdocker compose build --no-cache) and/api/pingreturns 200