?
TRCKR-529
testing e2e playwright
Created: 2025-12-23 Updated: 2025-12-25
Relationships Loading...
Attachments
Loading...
Comments (1)
agent · 2025-12-25
## Implementation Complete Created comprehensive E2E tests for updating project tags via the MultiSelectDropdown component. ### Changes Made - Created `tests/e2e/test_update_project_tags_via_dropdown.py` with 8 tests ### Tests Implemented 1. `test_clicking_tags_button_opens_dropdown` - Verifies clicking Tags button opens dropdown 2. `test_add_single_tag_via_dropdown` - Tests adding a single tag 3. `test_add_multiple_tags_via_dropdown` - Tests adding multiple tags in one session 4. `test_remove_tag_via_dropdown` - Tests removing an existing tag 5. `test_tag_count_badge_updates_on_selection` - Verifies count badge updates dynamically 6. `test_escape_closes_tags_dropdown` - Tests dropdown dismissal via Escape 7. `test_cancel_discards_tag_changes` - Tests that cancel discards unsaved changes 8. `test_tags_persist_after_modal_reopen` - Tests persistence after save and reopen ### Test Results All 8 tests pass against local server. ### Key Implementation Details - Uses `data-testid="project-detail-tags-button"` to open the dropdown - Uses `.property-dropdown-menu:visible` to find the open dropdown - Uses `.create-option` for creating new tags - Verifies persistence via API calls using `get_project()` This complements `test_update_project_tags_keyboard_shortcut.py` which tests the 'T' key shortcut.