Testing: Elections
Test election creation, nominations, voting, and results.
Demo Credentials
| Role | Password | Tenant | |
|---|---|---|---|
| Admin | daniel.harris@example.com | Demo1234! | demo-association |
Test 1: List Elections
- 🟢 Easy — Click Around
- 🔵 Advanced — API / Code
- Click Elections in the sidebar
- ✅ See 16 seeded elections (active, upcoming, completed)
curl -s https://ams.14.jugaar.ai/api/v1/elections/ \
-H "Authorization: Bearer $TOKEN"
Test 2: Election Statistics
- 🟢 Easy — Click Around
- 🔵 Advanced — API / Code
- Check election stats
- ✅ See total elections, voter turnout, completion rates
curl -s https://ams.14.jugaar.ai/api/v1/elections/stats \
-H "Authorization: Bearer $TOKEN"
Test 3: Election Details
- 🟢 Easy — Click Around
- 🔵 Advanced — API / Code
- Click on a completed election
- ✅ See candidates, vote counts, winner
# Get election results
curl -s https://ams.14.jugaar.ai/api/v1/elections/{election_id}/results \
-H "Authorization: Bearer $TOKEN"