Feature: automatic HTML snapshotting on failure (when testRoot has content) #8
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
Make "automatic rendering + snapshotting" real: on failure, capture what the test rendered — raw HTML from
testRootplus a screenshot.Current reality
The headless runner already writes a full-page screenshot + DOM snapshot to
<cwd>/.ci/failureson failure, but there's no per-test HTML snapshot tied totestRootcontent, and the testrunner UI renders each file in an iframe sandbox.Approach
When
testRoothas content at failure time, snapshottestRoot(outerHTML) + a screenshot of it; surface in the testrunner UI and in the artifacts dir.Acceptance
A failing test that rendered into
testRootproduces an HTML + screenshot snapshot shown in the runner.Refs
README bullet ("Automatic rendering and snapshotting of HTML…"); PR #1.
testRootHTML + screenshot snapshots on failure (#8) #21