Headless: per-test testRoot HTML + screenshot snapshots on failure (#8) #21
Loading…
Reference in a new issue
No description provided.
Delete branch "wip/issue-08"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Per #8 (lead decision: headless only, no in-browser snapshot).
testRoot, writetestRoot.outerHTML+ a screenshot of its sandbox iframe to the artifacts dir (timestamped per-test filenames), and log the paths. EmptytestRootis skipped.data-*hooks (data-test-status/data-test-name/data-file-src, plus newdata-test-file-src/data-test-activeon iframes).Verification
sadpathfailure writes full-page artifacts and logs the empty-testRootskip; atestRoot-rendering fixture produces the.html+.png; smoke additions.Closes #8
On failure, for every failing test whose sandbox #test-root has content, write testRoot.outerHTML plus a screenshot of the owning sandbox iframe to the artifacts dir, named <sanitized-file>.<sanitized-test>.{html,png}, and log the paths. Skips tests with an empty testRoot; keeps the existing full-page screenshot/DOM snapshot. Best-effort and guarded so snapshotting can never turn a failure into a crash. Add a smoke fixture that renders into testRoot and fails, asserting the per-test .html + .png artifacts are written.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.