←
TRCKR-667
Created: 2025-12-20
•
Updated: 2025-12-22
Relationships
Loading...
Attachments
Loading...
Comments (1)
agent
·
2025-12-22
## Fix Applied
Added comprehensive E2E tests for attachment list display in `tests/e2e/test_attachment_list_display.py`.
### Changes Made
Created new test file with 11 tests covering:
**TestAttachmentListDisplay (7 tests)**
- `test_attachment_row_displays_with_url` - Verifies URL attachments display correct data in all columns
- `test_attachment_displays_for_project_owner` - Verifies project-owned attachments show project key
- `test_multiple_attachments_display` - Verifies multiple attachments render as separate rows
- `test_empty_table_displays_no_attachments_message` - Verifies empty state shows "No attachments"
- `test_attachment_row_click_opens_detail_modal` - Verifies clicking row opens detail modal
- `test_owner_link_navigates_to_owner` - Verifies clicking owner link navigates to owner
- `test_attachment_count_updates_correctly` - Verifies count in toolbar is accurate
**TestAttachmentTableSorting (2 tests)**
- `test_sort_by_title` - Verifies title column sorting
- `test_sort_by_created_date` - Verifies created date sorting
**TestAttachmentTableSearch (1 test)**
- `test_search_filters_by_title` - Verifies search input filters by title
**TestAttachmentTableFilters (1 test)**
- `test_filter_by_owner_type` - Verifies owner type filter dropdown
### Testing
- Tests collect successfully (11 tests)
- Syntax verified
- Tests require Docker or debug-mode server (consistent with existing E2E tests)