File size: 1,569 Bytes
60b6623
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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