←
TRCKR-325
Created: 2025-12-12
•
Updated: 2025-12-16
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-12
Fixed the flaky Playwright inline title edit test.
**Root cause:**
The checkForChanges() function only searched for changed fields within #issue-form, but the title input (#title-input) is located outside the form in the modal header. Similarly, saveIssueChanges() only collected form data from #issue-form, missing the title field.
**Changes made:**
1. server/templates/modals/issue_detail.html:467-499 - Updated checkForChanges() to also check #title-input before checking form elements
2. server/templates/modals/issue_detail.html:501-547 - Updated saveIssueChanges() to include title from #title-input in the request payload and update both the data-original attribute and display text after save
3. tests/e2e/test_issues_crudl.py:226-268 - Removed @pytest.mark.skip decorator and improved test to explicitly trigger input event and wait for save completion
**Test results:**
✓ test_update_issue_title now passes reliably
✓ All 14 e2e CRUDL tests pass without failures
The fix ensures that title edits are properly detected and saved, making the test stable.