Issue 9: Testing Roles, Voting, and Data Integrity
Effort: 2-3h
Dependencies: Issues 1-8
Milestone: Sprint 2
Description:
- Create poll as TA, verify students can view and vote.
- Attempt duplicate voting; verify blocked.
- Verify unauthorized poll creation fails.
- Confirm counts/percentages correct with multiple voters.
- API contract tests for create/fetch/vote.
Acceptance Criteria:
- Full happy-path passes on desktop/mobile.
- Duplicate vote prevention confirmed at DB layer.
- Unauthorized actions return correct status codes.
- UI/API behave consistently across refreshes.
Issue 9: Testing Roles, Voting, and Data Integrity
Effort: 2-3h
Dependencies: Issues 1-8
Milestone: Sprint 2
Description:
Acceptance Criteria: