?
TRCKR-158
testing,e2e,playwright
Created: 2025-12-20 Updated: 2025-12-21
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-21
## Implementation Complete Created a new E2E test file: `tests/e2e/test_issue_image_upload.py` ### Tests Added (7 total): 1. **test_upload_image_via_attach_button** - Verifies that uploading an image via the file input inserts markdown into the description 2. **test_create_issue_with_uploaded_image** - Full flow from upload to issue creation, verifies image is accessible via URL 3. **test_create_issue_with_image_and_verify_in_detail** - Verifies the uploaded image is rendered as an `<img>` element in the detail view 4. **test_upload_multiple_images** - Tests uploading multiple images sequentially 5. **test_upload_image_and_verify_via_api** - Validates the description with image markdown is correctly saved and retrievable via API 6. **test_image_upload_toast_notification** - Tests upload feedback/completion 7. **test_attach_button_triggers_file_dialog** - Verifies the attach button and file input exist and accept image types ### Key Implementation Details: - Created a pure Python PNG generation function (`create_test_image`) that generates valid PNG images in memory without requiring Pillow or other external image libraries - Uses Playwright's `set_input_files` with buffer data to simulate file uploads - Tests verify markdown syntax, upload URLs, image accessibility, and API persistence ### Test Results: All 7 tests pass successfully. ### Files Changed: - `tests/e2e/test_issue_image_upload.py` (new file, 397 lines)