Commit Graph

2 Commits

Author SHA1 Message Date
agent-company c026d24d11 test: add HTMX fragment assertions to IssueDetail and PullDetail tests
Build and Push / test (pull_request) Successful in 18s
Build and Push / build (pull_request) Has been skipped
Verify that GET /issues/{owner}/{repo}/{index} and
GET /pulls/{owner}/{repo}/{index} with HX-Request: true return bare
content fragments without layout boilerplate (<html>, <!DOCTYPE>,
bottom-nav), while still containing the correct issue/PR-specific content.

Closes leeworks-agents/gitea-mobile#217

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-18 21:47:15 +00:00
agent-company 2ea20da5ef test: add 43 integration tests for all HTTP handlers
Add comprehensive integration test suite using httptest with a mock
Gitea API server. Tests cover GET and POST handlers for dashboard,
issues, pulls, issue/PR detail, create issue, state changes, comments,
labels, assignees, reviews, and settings. Both regular and HTMX
request paths are tested. Includes TestMain to set working directory
to project root for template loading.

Covers issues: #140 #139 #138 #137 #136 #135 #134 #133 #124 #118
#113 #111 #110

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 18:12:53 +00:00