| name | ticket-lifecycle-check |
| description | Verifies the complete lifecycle of tickets including creation, editing, status changes, and deletion. Invoke when user asks to test ticket management or verify CRUD operations. |
Ticket Lifecycle Check
This skill runs a comprehensive end-to-end test suite (tests/e2e/test_tickets_full.py) to verify the Ticket Management module.
Scope
The test covers the following user flows:
- Authentication: Logs in as an administrator.
- Navigation: Accesses the Ticket Management dashboard.
- Creation: Creates a new ticket with specific priority and category.
- Verification: Confirms the ticket appears in the detail view with correct data.
- Editing: Modifies the ticket title and status.
- Search: Locates the modified ticket in the list view using search filters.
- Deletion: Deletes the ticket and verifies it is removed from the list.
Prerequisites
- Frontend application running on
http://localhost:3000.
- Backend API (mock or real) responding to ticket requests.
- Python 3 environment with
playwright and pytest installed.
Usage
The skill automatically:
- Checks/Activates the Python virtual environment (
tests/e2e/venv).
- Installs necessary dependencies if missing.
- Executes the test script with verbose output.
Command
source tests/e2e/venv/bin/activate
pytest -s tests/e2e/test_tickets_full.py
Troubleshooting
- Login Failed: Ensure the mock user
admin / admin123 is valid.
- Element Not Found: The frontend UI might have changed (e.g., class names, labels). Check
test_tickets_full.py for selector updates.
- Timeout: Network latency or backend slowness. Increase timeouts in
expect() calls.