mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-24 10:31:08 -05:00
Add secret management guide, client-side performance monitoring, and search accessibility enhancements
- Introduced a comprehensive Secret Management Guide detailing best practices, secret classification, development setup, production management, rotation procedures, and emergency protocols. - Implemented a client-side performance monitoring script to track various metrics including page load performance, paint metrics, layout shifts, and memory usage. - Enhanced search accessibility with keyboard navigation support for search results, ensuring compliance with WCAG standards and improving user experience.
This commit is contained in:
@@ -1,5 +1,39 @@
|
||||
# Park Search Tests
|
||||
|
||||
## Why These Tests Are Disabled
|
||||
|
||||
These tests were disabled because they need updating to work with the new `ParkLocation` model instead of the generic `Location` model. The model refactoring changed how location data is stored and accessed for parks.
|
||||
|
||||
## Re-enabling These Tests
|
||||
|
||||
To re-enable these tests, follow these steps:
|
||||
|
||||
1. **Update model imports** in `test_filters.py` and `test_models.py`:
|
||||
- Replace `from apps.locations.models import Location` with `from apps.parks.models import ParkLocation`
|
||||
- Update any other location-related imports
|
||||
|
||||
2. **Update test fixtures** to use `ParkLocation` instead of `Location`:
|
||||
- Change factory classes to create `ParkLocation` instances
|
||||
- Update fixture data to match the new model structure
|
||||
|
||||
3. **Update assertions** to match new model structure:
|
||||
- Adjust field references (e.g., `park.location` may now be `park.park_location`)
|
||||
- Update any serializer-based assertions
|
||||
|
||||
4. **Move files** back to the active test directory:
|
||||
```bash
|
||||
mv backend/apps/parks/tests_disabled/*.py backend/apps/parks/tests/
|
||||
```
|
||||
|
||||
5. **Run tests** to verify they pass:
|
||||
```bash
|
||||
uv run pytest backend/apps/parks/tests/
|
||||
```
|
||||
|
||||
**Tracking**: See TODO(THRILLWIKI-XXX) for tracking issue
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Test suite for the park search functionality including:
|
||||
|
||||
Reference in New Issue
Block a user