?
TRCKR-517
testing e2e playwright
Created: 2025-12-23 Updated: 2025-12-25
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-25
## Issue Investigation The E2E tests for updating milestone due date picker already existed in `tests/e2e/test_update_milestone_due_date.py`. However, running the tests revealed a bug: `test_clear_due_date_to_none` was failing. ## Root Cause Bug in `server/routes/web.py:update_milestone`. When users cleared the due date field (empty string), the server wasn't actually clearing it because FastAPI's `Form(None)` converts empty form strings to `None`, and `if due is not None:` was never true for empty values. ## Fix Applied Updated `server/routes/web.py:1810-1830` to use raw form data detection (same pattern used in the issue update endpoint). ## Verification - All 8 tests in `test_update_milestone_due_date.py` pass - All 4 tests in `test_update_milestone_clear_due_date.py` pass - Manual testing confirms due dates can now be cleared ## Changes - Modified: `server/routes/web.py` (+14 lines, -3 lines)