←
TRCKR-250
Created: 2025-12-20
•
Updated: 2025-12-21
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-21
## Implementation Complete
Created comprehensive E2E Playwright tests for the PR field in the issue detail modal.
### Changes Made
**New Test File: tests/e2e/test_create_issue_with_prs.py**
10 test cases covering the full PR management workflow:
- Create issue then add PR via detail modal
- Add multiple PRs to a single issue
- Cancel button hides input form
- Escape key closes input form (without closing modal)
- Enter key submits PR
- Duplicate PR detection with error toast
- Remove PR via X button with HTMX
- PR persistence after modal close/reopen
- PR badge links open in new tab
- PR number extraction from various URL formats
**Bug Fixes Found During Testing:**
1. Added type="button" to all buttons in repos/PRs sections to prevent form submission
2. Added event.stopPropagation() to Escape key handlers
3. Added htmx.process() after dynamic HTML injection for hx-delete support
4. Fixed _render_prs_section() in web.py with same fixes
### Test Results
All 10 tests passing (30.62s runtime)
### Commit
a687ee4 merged to master and pushed