←
TRCKR-388
Created: 2025-12-17
•
Updated: 2025-12-21
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-21
## Implementation Summary
### What was implemented
Created a comprehensive E2E test suite for attachment URL rendering in markdown descriptions.
### Changes made
- Created tests/e2e/test_attachment_url_rendering.py with 5 test cases:
1. test_attachment_url_in_description_renders_as_image - Verifies attachment:UUID syntax converts to /web/attachments/UUID/download with correct src, alt text, and embedded-attachment class
2. test_regular_image_url_still_works - Confirms regular URLs (https://...) render unchanged without embedded-attachment class
3. test_multiple_attachment_urls_render_correctly - Tests multiple attachment references render correctly
4. test_mixed_attachment_and_regular_urls - Tests mixed attachment: and regular URLs both render correctly
5. test_attachment_url_rendering_after_edit_mode - Verifies rendering persists after entering/exiting Milkdown editor
### Technical details
- The attachment URL rendering is implemented in server/templates/base.html:3358-3369 using a custom marked.js renderer
- Tests use the fixture override pattern to skip database reset (not needed since each test creates unique entities)
### Verification
All 5 E2E tests pass (5 passed in 6.07s)