SCGR's picture
tests
60b6623
# End-to-End Tests
This directory contains end-to-end tests for the PromptAid Vision backend. E2E tests verify complete user workflows and system behavior from start to finish.
## πŸ§ͺ Test Categories
### Complete User Workflow Tests
- **`test_upload_workflow.py`** - Complete file upload workflow from selection to storage
- **`test_crisis_analysis_workflow.py`** - Complete crisis analysis workflow
- **`test_admin_management_workflow.py`** - Complete admin management workflow
- **`test_data_export_workflow.py`** - Complete data export workflow
## πŸš€ Running E2E Tests
### Run All E2E Tests
```bash
cd py_backend
python tests/e2e_tests/run_e2e_tests.py
```
### Run Individual Tests
```bash
cd py_backend
python tests/e2e_tests/test_upload_workflow.py
python tests/e2e_tests/test_crisis_analysis_workflow.py
```
## πŸ“‹ Test Requirements
- **Full backend server** must be running
- **Database** must be accessible and configured
- **All services** must be operational
- **External APIs** must be available (if testing integrations)
- **Test data** must be properly set up
## πŸ”§ Test Environment
E2E tests require the complete system to be running and configured. These tests simulate real user interactions and verify that the entire system works together correctly.
## 🎯 What E2E Tests Cover
- **Complete user journeys** from start to finish
- **Cross-component workflows** that span multiple services
- **Real data flows** through the entire system
- **User experience validation** end-to-end
- **System integration** under realistic conditions