Skip to content

fix(report): stop tag pills throwing in single-test exports - #249

Merged
shossain786 merged 1 commit into
masterfrom
fix/report-export-followups
Nov 11, 2026
Merged

shossain786 merged 1 commit into
masterfrom
fix/report-export-followups

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

Follow-up to #248.

What & why

  • Bug: exported single-test files kept the tag pills' onclick="filterByTag(...)". That function only exists in the full report, so clicking a pill in the export threw ReferenceError: filterByTag is not defined. Pills in the export now only stop propagation, so clicking one doesn't collapse the detail row either.
  • Removes generate_writesSampleReportToTargetForManualVerification. It only wrote a sample report into target/ and asserted nothing real.
  • Docs: adds a "Share a single test" section to reporting/html-report.md.

Verification

  • Bug reproduced on master: exported each test from a sample report into an isolated iframe and clicked its tag pills. Every pill threw a ReferenceError.
  • On this branch, the same probe gives 0 errors and 0 filterByTag handlers. Pills leave the detail open, the row click still toggles it, and the screenshot lightbox still opens.
  • Tag filtering still works in the full report.
  • mvn clean verify passes.

🤖 Generated with Claude Code

Exported files kept the tag pills' filterByTag handler, which only exists
in the full report, so clicking a pill threw a ReferenceError. Pills now
just stop propagation, so they also no longer collapse the detail row.

Also drops a test that only wrote a sample report into target/, and
documents the "Download this test" button.

Follow-up to #248.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shossain786
shossain786 merged commit 9a1c790 into master Nov 11, 2026
2 checks passed
@shossain786
shossain786 deleted the fix/report-export-followups branch November 11, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant