Repository navigation
Example Acceptance Tests
Note: "Actual Result" and "Status" columns are left blank as the tests have not been executed yet. In addition, test accounts (
standard1@example.com,expert1@example.com, password:password123) are only available in the local Docker Compose environment. They are seeded automatically on first run and do not exist in production.
| Field | Value |
|---|---|
| Test Case ID | TC-AUTH-001 |
| Name | Register a new user with Expert role |
| Module | Accounts — Registration |
| Priority | High |
| Designed by | Asya Betül Keskin |
| Date | 2026-04-30 |
| Pre-condition | Application is running. The email newexpert@example.com does not already exist in the database. |
| Dependencies | None |
| Automated | No |
| Requirement | 1.1.2.1, 1.1.1.2.1 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Open the registration page | — | Registration form is displayed with fields: Full Name, Email, Password, Role, Hub | ||
| 2 | Fill in Full Name | Expert User Test |
Field accepts input | ||
| 3 | Fill in Email | newexpert@example.com |
Field accepts input | ||
| 4 | Fill in Password | TestPass123! |
Password is masked | ||
| 5 | Select Role | Expert |
Expertise category dropdown appears | ||
| 6 | Select Expertise Category | Medical |
Category is selected | ||
| 7 | Select Hub | Istanbul |
Hub is selected | ||
| 8 | Submit the form | — | HTTP 201 response; user is redirected to dashboard or login page | ||
| 9 | Log in with the new account |
newexpert@example.com / TestPass123!
|
Login succeeds; user role shown as Expert |
Post-condition: A new Expert user exists in the database with role=EXPERT and expertise_category=MEDICAL.
| Field | Value |
|---|---|
| Test Case ID | TC-AUTH-002 |
| Name | Log in with valid email and password |
| Module | Accounts — Authentication |
| Priority | High |
| Designed by | Ahmet Cem Çalık |
| Date | 2026-04-30 |
| Pre-condition | User standard1@example.com exists with password password123. |
| Dependencies | TC-AUTH-001 |
| Automated | No |
| Requirement | 1.1.2.2, 1.1.2.3, 1.1.2.6 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Open the login page | — | Login form displayed with Email and Password fields | ||
| 2 | Enter email | standard1@example.com |
Field accepts input | ||
| 3 | Enter password | password123 |
Password masked | ||
| 4 | Click "Login" | — | HTTP 200; JWT access token returned; user redirected to dashboard | ||
| 5 | Attempt to access a protected route (e.g., profile page) | — | Page loads successfully without redirect to login | ||
| 6 | Try login with wrong password | wrongpass |
HTTP 401; error message "Invalid credentials" shown |
Post-condition: User session is active; JWT token is stored client-side.
| Field | Value |
|---|---|
| Test Case ID | TC-HELP-001 |
| Name | Standard user creates a help request |
| Module | Help Requests — Create |
| Priority | High |
| Designed by | Ahmet Hamza Çakmak |
| Date | 2026-04-30 |
| Pre-condition | User is logged in as standard1@example.com. |
| Dependencies | TC-AUTH-002 |
| Automated | No |
| Requirement | 1.1.4.1 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Navigate to "Create Help Request" | — | Form displayed with: Title, Description, Category, Urgency, Location fields | ||
| 2 | Fill in Title | Need medical assistance |
Field accepts input | ||
| 3 | Fill in Description | I need help with medication delivery |
Field accepts input | ||
| 4 | Select Category | Medical |
Category selected | ||
| 5 | Select Urgency | High |
Urgency selected | ||
| 6 | Submit the form | — | HTTP 201; request appears in the help requests list with status OPEN | ||
| 7 | Open the created request | — | All entered details are displayed correctly; status shows "Open" |
Post-condition: A HelpRequest record exists in DB with status=OPEN, author=standard1, category=MEDICAL.
| Field | Value |
|---|---|
| Test Case ID | TC-HELP-002 |
| Name | Expert comments on a help request, triggering status change |
| Module | Help Requests — Expert Response |
| Priority | High |
| Designed by | Barış Öksüz |
| Date | 2026-04-30 |
| Pre-condition | A help request with status OPEN exists (created in TC-HELP-001). User logged in as expert1@example.com. |
| Dependencies | TC-HELP-001 |
| Automated | No |
| Requirement | 1.1.4.7, 1.1.4.10 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Navigate to the open help request | — | Help request detail page shown; status = "Open" | ||
| 2 | Add a comment as Expert | I can help — contact me at 0555-xxx |
Comment is posted successfully | ||
| 3 | Refresh the help request detail page | — | Status changed to "Expert Responding"; comment appears in list | ||
| 4 | Verify as Standard user: check the same request | Login as standard1@example.com and open the request |
Status shows "Expert Responding"; expert's comment visible |
Post-condition: HelpRequest.status = EXPERT_RESPONDING; comment_count incremented by 1.
| Field | Value |
|---|---|
| Test Case ID | TC-HELP-003 |
| Name | Author marks help request as resolved |
| Module | Help Requests — Resolution |
| Priority | High |
| Designed by | Ekin Menken |
| Date | 2026-04-30 |
| Pre-condition | A help request with status EXPERT_RESPONDING exists. User logged in as the request author (standard1@example.com). |
| Dependencies | TC-HELP-002 |
| Automated | No |
| Requirement | 1.1.4.6, 1.1.4.8 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Open the help request (status: EXPERT_RESPONDING) | — | Detail page shown with "Mark as Resolved" button visible | ||
| 2 | Click "Mark as Resolved" | — | Confirmation dialog or immediate action | ||
| 3 | Confirm resolution | — | HTTP 200; status updates to "Resolved" | ||
| 4 | Verify status cannot be changed again | — | "Mark as Resolved" button no longer available; status is locked | ||
| 5 | Verify another user cannot resolve it | Login as different user, open the request | "Mark as Resolved" button not shown for non-authors |
Post-condition: HelpRequest.status = RESOLVED; status cannot revert.
| Field | Value |
|---|---|
| Test Case ID | TC-FORUM-001 |
| Name | User creates a forum post |
| Module | Forum — Post Creation |
| Priority | Medium |
| Designed by | Ahmet Erdem Bulut |
| Date | 2026-04-30 |
| Pre-condition | User logged in as standard1@example.com. |
| Dependencies | TC-AUTH-002 |
| Automated | No |
| Requirement | 1.1.3.1, 1.1.3.8 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Navigate to the Forum section | — | Forum post list displayed | ||
| 2 | Click "New Post" | — | Post creation form shown with Title, Content, Type fields | ||
| 3 | Fill in Title | Earthquake safety tips |
Field accepts input | ||
| 4 | Fill in Content | Store 3 days of water per person... |
Field accepts input | ||
| 5 | Select Post Type | Standard |
Type selected | ||
| 6 | Submit | — | HTTP 201; post appears in forum list | ||
| 7 | Open the created post | — | Title, content, author, timestamp displayed correctly; upvote/downvote buttons visible |
Post-condition: Forum Post record exists with status=ACTIVE, forum_type=STANDARD, upvote_count=0.
| Field | Value |
|---|---|
| Test Case ID | TC-FORUM-002 |
| Name | User upvotes a forum post |
| Module | Forum — Voting |
| Priority | Medium |
| Designed by | Mete Damar |
| Date | 2026-04-30 |
| Pre-condition | A forum post exists (from TC-FORUM-001). User logged in as expert1@example.com (different from post author). |
| Dependencies | TC-FORUM-001 |
| Automated | No |
| Requirement | 1.1.3.2 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Open the forum post | — | Post detail shown; upvote count = 0 | ||
| 2 | Click the upvote button | — | Upvote count increments to 1; button becomes active | ||
| 3 | Click upvote again | — | Vote is toggled off; count returns to 0 | ||
| 4 | Click downvote button | — | Downvote count increments; upvote and downvote cannot both be active simultaneously | ||
| 5 | Refresh the page | — | Vote state is persisted; counts remain correct |
Post-condition: Vote is recorded in DB; upvote_count/downvote_count reflects user action.
| Field | Value |
|---|---|
| Test Case ID | TC-MOBILE-001 |
| Name | User accesses offline emergency cards without network |
| Module | Mobile — Offline Cards |
| Priority | High |
| Designed by | İrem Önen |
| Date | 2026-04-30 |
| Pre-condition | Android emulator is running. User has previously logged in to the app at least once (cards were cached). |
| Dependencies | TC-AUTH-002 (mobile login) |
| Automated | No |
| Requirement | 1.1.7.2, 1.2.2 |
Test Steps:
| Step | Description | Test Data | Expected Result | Actual Result | Status |
|---|---|---|---|---|---|
| 1 | Launch the app with network enabled | — | App loads; navigate to "Emergency Cards" section | ||
| 2 | Verify cards are visible online | — | Emergency preparedness cards displayed (e.g., "What to do during earthquake") | ||
| 3 | Enable airplane mode in emulator | Settings → Airplane Mode ON | No network connection | ||
| 4 | Reopen the Emergency Cards section | — | Cards are still visible; "Offline" indicator shown | ||
| 5 | Tap on a card | — | Full card content displayed without any network request | ||
| 6 | Disable airplane mode | Settings → Airplane Mode OFF | App reconnects; cards still displayed |
Post-condition: Emergency card content accessible regardless of network state.
Team Members
- Weekly Meeting 1 (15.02.2026)
- Weekly Meeting 2 (23.02.2026)
- Weekly Meeting 3 (03.03.2026)
- Weekly Meeting 4 (11.03.2026)
- Weekly Meeting 5 (16.03.2026)
- Weekly Meeting 6 (23.03.2026)
- Weekly Meeting 7 (30.03.2026)
- Weekly Meeting 8 (06.04.2026)
- Weekly Meeting 9 (15.04.2026)
- Weekly Meeting 10 (29.04.2026)
- Weekly Meeting 11 (06.05.2026)
- Weekly Meeting 12 (11.05.2026)
- Lab 1 Report (12.02.2026)
- Lab 2 Report (19.02.2026)
- Lab 3 Report (26.02.2026)
- Lab 4 Report (05.03.2026)
- Lab 5 Report (12.03.2026)
- Lab 6 Report (26.03.2026)
- Lab 7 Report (02.04.2026)
- Lab 8 Report (16.04.2026)
- Lab 9 Report (30.04.2026)
- Lab 10 Report (07.05.2026)