test: add HTMX fragment assertions to IssueDetail and PullDetail integration tests #217
Reference in New Issue
Block a user
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?
Context
Issue #196 confirmed that
renderPage()already returns bare content fragments whenHX-Request: trueis set. However, there are no integration tests that explicitly verify this behavior for the detail routes.What to do
Add test cases to
internal/handlers/integration_test.go:TestIntegration_IssueDetail_HTMX— GET/issues/test-org/repo1/1withHX-Request: trueheader:<nav class="bottom-nav"><htmlor<!DOCTYPEIssue #1)TestIntegration_PullDetail_HTMX— GET/pulls/test-org/repo1/1withHX-Request: trueheader:Acceptance Criteria
reqWithToken+httptest.NewRecorder()patterngo test -race ./...References
internal/handlers/integration_test.gofor patternsrenderPage()ininternal/handlers/handlers.gofor the implementation being testedTriage: Assigned to @AI-QA. Delegating to @qa-engineer agent. Small test task -- add HTMX fragment assertions to IssueDetail and PullDetail integration tests, verifying that HX-Request header correctly returns bare fragments without layout boilerplate.
PR #235 has been created for this issue. Awaiting review.
Repo Manager status: PR #235 is open and awaiting review. This PR adds HTMX fragment assertions for IssueDetail and PullDetail integration tests as described in this issue.
Manager Update (2026-05-19): PR #235 is open and mergeable, adding HTMX fragment assertions to detail view tests. Architect review has been dispatched.