# 4. Motivation & Engagement — Test Cases

User Type: **Student**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: motivation_engagement.md — every feature, sub-feature, and rule covered

---

## Test Execution Policy
- Zero tolerance: any deviation from documented behavior = FAILED = bug
- Every bug is immediately logged/reported (Bug ID, feature, sub-feature, expected vs actual, severity) and fixed 100% before the group passes
- Feature group passes only at 100% test pass rate

## Coverage Matrix
| Feature | Sub-feature / Rule | Test IDs |
|---------|--------------------|----------|
| 4.1 Motivational Support | Encouragement messages for wins | TC-ST-09-04-001 |
| 4.1 Motivational Support | Celebratory moments for milestones | TC-ST-09-04-002 |
| 4.1 Motivational Support | Gentle nudges when struggling or inactive | TC-ST-09-04-003 |
| 4.1 Motivational Support | Contextual messages based on recent activity | TC-ST-09-04-004 |
| 4.1 Motivational Support | Motivational messages on the dashboard | TC-ST-09-04-005 |
| 4.1 Motivational Support | Message frequency respects notification preferences | TC-ST-09-04-006 |
| 4.1 Motivational Support | Motivation event logging (shown) | TC-ST-09-04-007 |
| 4.1 Motivational Support | Audit logging of the motivational support | TC-ST-09-04-008 |
| 4.1 Motivational Support | Rule: Encouragement messages are triggered by wins and milestones. | TC-ST-09-04-001 |
| 4.1 Motivational Support | Rule: A nudge is sent after inactivity beyond the threshold. | TC-ST-09-04-002 |
| 4.1 Motivational Support | Rule: Messages are contextual to the Student's recent activity. | TC-ST-09-04-003 |
| 4.1 Motivational Support | Rule: The message frequency respects the Student's notification preferences. | TC-ST-09-04-004 |
| 4.1 Motivational Support | Rule: Motivation events (shown) are logged with the timestamp. | TC-ST-09-04-005 |
| 4.1 Motivational Support | Rule: The motivational support is audit-logged with the account and the timestamp. | TC-ST-09-04-006 |
| 4.2 Daily Engagement and Study Reminders | Study reminders at the Student's preferred time | TC-ST-09-04-009 |
| 4.2 Daily Engagement and Study Reminders | Daily goal (e.g., complete 1 lesson) | TC-ST-09-04-010 |
| 4.2 Daily Engagement and Study Reminders | Daily goal completion tracked | TC-ST-09-04-011 |
| 4.2 Daily Engagement and Study Reminders | Completing the daily goal keeps the streak alive | TC-ST-09-04-012 |
| 4.2 Daily Engagement and Study Reminders | Points for completing the daily goal | TC-ST-09-04-013 |
| 4.2 Daily Engagement and Study Reminders | Reminder timing adjustable | TC-ST-09-04-014 |
| 4.2 Daily Engagement and Study Reminders | Engagement event logging (reminded, daily goal completed) | TC-ST-09-04-015 |
| 4.2 Daily Engagement and Study Reminders | Audit logging of the daily engagement and study reminders | TC-ST-09-04-016 |
| 4.2 Daily Engagement and Study Reminders | Rule: A study reminder is sent at the Student's preferred time. | TC-ST-09-04-009 |
| 4.2 Daily Engagement and Study Reminders | Rule: The daily goal is a simple, achievable target. | TC-ST-09-04-010 |
| 4.2 Daily Engagement and Study Reminders | Rule: Completing the daily goal keeps the streak alive and earns points. | TC-ST-09-04-011 |
| 4.2 Daily Engagement and Study Reminders | Rule: The reminder timing is adjustable by the Student. | TC-ST-09-04-012 |
| 4.2 Daily Engagement and Study Reminders | Rule: Engagement events (reminded, daily goal completed) are logged with the timestamp. | TC-ST-09-04-013 |
| 4.2 Daily Engagement and Study Reminders | Rule: The daily engagement and study reminders is audit-logged with the account and the timestamp. | TC-ST-09-04-014 |
| 4.3 Engagement Analytics | Daily and weekly activity view | TC-ST-09-04-017 |
| 4.3 Engagement Analytics | Login frequency | TC-ST-09-04-018 |
| 4.3 Engagement Analytics | Engagement trends over time | TC-ST-09-04-019 |
| 4.3 Engagement Analytics | Most active days and times | TC-ST-09-04-020 |
| 4.3 Engagement Analytics | Engagement available on web and mobile | TC-ST-09-04-021 |
| 4.3 Engagement Analytics | Engagement event logging (viewed) | TC-ST-09-04-022 |
| 4.3 Engagement Analytics | Audit logging of the engagement analytics | TC-ST-09-04-023 |
| 4.3 Engagement Analytics | Rule: Engagement is measured from the Student's activity and logins. | TC-ST-09-04-017 |
| 4.3 Engagement Analytics | Rule: The trend is computed over the selected period. | TC-ST-09-04-018 |
| 4.3 Engagement Analytics | Rule: The most active days and times are derived from the activity. | TC-ST-09-04-019 |
| 4.3 Engagement Analytics | Rule: The engagement view is available on web and mobile. | TC-ST-09-04-020 |
| 4.3 Engagement Analytics | Rule: Engagement events (viewed) are logged with the timestamp. | TC-ST-09-04-021 |
| 4.3 Engagement Analytics | Rule: The engagement analytics is audit-logged with the account and the timestamp. | TC-ST-09-04-022 |

## 4.1 Motivational Support

### TC-ST-09-04-001 — Encouragement messages for wins
**Type:** Positive
**Covers:** 4.1 → Encouragement messages for wins; Rule: Encouragement messages are triggered by wins and milestones.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Encouragement messages for wins.
2. Observe the result and verify the full behavior: Encouragement messages for wins.
**Expected Result:** Encouragement messages for wins — delivered exactly as documented.
**Priority:** Critical

### TC-ST-09-04-002 — Celebratory moments for milestones
**Type:** Positive
**Covers:** 4.1 → Celebratory moments for milestones; Rule: A nudge is sent after inactivity beyond the threshold.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Celebratory moments for milestones.
2. Observe the result and verify the full behavior: Celebratory moments for milestones.
**Expected Result:** Celebratory moments for milestones — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-003 — Gentle nudges when struggling or inactive
**Type:** Positive
**Covers:** 4.1 → Gentle nudges when struggling or inactive; Rule: Messages are contextual to the Student's recent activity.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Gentle nudges when struggling or inactive.
2. Observe the result and verify the full behavior: Gentle nudges when struggling or inactive.
**Expected Result:** Gentle nudges when struggling or inactive — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-004 — Contextual messages based on recent activity
**Type:** Positive
**Covers:** 4.1 → Contextual messages based on recent activity; Rule: The message frequency respects the Student's notification preferences.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Contextual messages based on recent activity.
2. Observe the result and verify the full behavior: Contextual messages based on recent activity.
**Expected Result:** Contextual messages based on recent activity — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-005 — Motivational messages on the dashboard
**Type:** Positive
**Covers:** 4.1 → Motivational messages on the dashboard; Rule: Motivation events (shown) are logged with the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Motivational messages on the dashboard.
2. Observe the result and verify the full behavior: Motivational messages on the dashboard.
**Expected Result:** Motivational messages on the dashboard — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-006 — Message frequency respects notification preferences
**Type:** Positive
**Covers:** 4.1 → Message frequency respects notification preferences; Rule: The motivational support is audit-logged with the account and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Message frequency respects notification preferences.
2. Observe the result and verify the full behavior: Message frequency respects notification preferences.
**Expected Result:** Message frequency respects notification preferences — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-007 — Motivation event logging (shown)
**Type:** Positive
**Covers:** 4.1 → Motivation event logging (shown)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Motivation event logging (shown).
2. Observe the result and verify the full behavior: Motivation event logging (shown).
**Expected Result:** Motivation event logging (shown) — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-008 — Audit logging of the motivational support
**Type:** Positive
**Covers:** 4.1 → Audit logging of the motivational support
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the motivational support.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical

## 4.2 Daily Engagement and Study Reminders

### TC-ST-09-04-009 — Study reminders at the Student's preferred time
**Type:** Positive
**Covers:** 4.2 → Study reminders at the Student's preferred time; Rule: A study reminder is sent at the Student's preferred time.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Study reminders at the Student's preferred time.
2. Observe the result and verify the full behavior: Study reminders at the Student's preferred time.
**Expected Result:** Study reminders at the Student's preferred time — delivered exactly as documented.
**Priority:** Critical

### TC-ST-09-04-010 — Daily goal (e.g., complete 1 lesson)
**Type:** Positive
**Covers:** 4.2 → Daily goal (e.g., complete 1 lesson); Rule: The daily goal is a simple, achievable target.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Daily goal (e.g..
2. Observe the result and verify the full behavior: Daily goal (e.g., complete 1 lesson).
**Expected Result:** Daily goal (e.g., complete 1 lesson) — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-011 — Daily goal completion tracked
**Type:** Positive
**Covers:** 4.2 → Daily goal completion tracked; Rule: Completing the daily goal keeps the streak alive and earns points.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Daily goal completion tracked.
2. Observe the result and verify the full behavior: Daily goal completion tracked.
**Expected Result:** Daily goal completion tracked — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-012 — Completing the daily goal keeps the streak alive
**Type:** Positive
**Covers:** 4.2 → Completing the daily goal keeps the streak alive; Rule: The reminder timing is adjustable by the Student.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Completing the daily goal keeps the streak alive.
2. Observe the result and verify the full behavior: Completing the daily goal keeps the streak alive.
**Expected Result:** Completing the daily goal keeps the streak alive — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-013 — Points for completing the daily goal
**Type:** Positive
**Covers:** 4.2 → Points for completing the daily goal; Rule: Engagement events (reminded, daily goal completed) are logged with the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Points for completing the daily goal.
2. Observe the result and verify the full behavior: Points for completing the daily goal.
**Expected Result:** Points for completing the daily goal — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-014 — Reminder timing adjustable
**Type:** Positive
**Covers:** 4.2 → Reminder timing adjustable; Rule: The daily engagement and study reminders is audit-logged with the account and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Reminder timing adjustable.
2. Observe the result and verify the full behavior: Reminder timing adjustable.
**Expected Result:** Reminder timing adjustable — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-015 — Engagement event logging (reminded, daily goal completed)
**Type:** Positive
**Covers:** 4.2 → Engagement event logging (reminded, daily goal completed)
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Engagement event logging (reminded.
2. Observe the result and verify the full behavior: Engagement event logging (reminded, daily goal completed).
**Expected Result:** Engagement event logging (reminded, daily goal completed) — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-016 — Audit logging of the daily engagement and study reminders
**Type:** Positive
**Covers:** 4.2 → Audit logging of the daily engagement and study reminders
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the daily engagement and study reminders.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical

## 4.3 Engagement Analytics

### TC-ST-09-04-017 — Daily and weekly activity view
**Type:** Positive
**Covers:** 4.3 → Daily and weekly activity view; Rule: Engagement is measured from the Student's activity and logins.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Daily and weekly activity view.
2. Observe the result and verify the full behavior: Daily and weekly activity view.
**Expected Result:** Daily and weekly activity view — delivered exactly as documented.
**Priority:** Critical

### TC-ST-09-04-018 — Login frequency
**Type:** Positive
**Covers:** 4.3 → Login frequency; Rule: The trend is computed over the selected period.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Login frequency.
2. Observe the result and verify the full behavior: Login frequency.
**Expected Result:** Login frequency — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-019 — Engagement trends over time
**Type:** Positive
**Covers:** 4.3 → Engagement trends over time; Rule: The most active days and times are derived from the activity.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Engagement trends over time.
2. Observe the result and verify the full behavior: Engagement trends over time.
**Expected Result:** Engagement trends over time — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-020 — Most active days and times
**Type:** Positive
**Covers:** 4.3 → Most active days and times; Rule: The engagement view is available on web and mobile.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Most active days and times.
2. Observe the result and verify the full behavior: Most active days and times.
**Expected Result:** Most active days and times — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-021 — Engagement available on web and mobile
**Type:** Positive
**Covers:** 4.3 → Engagement available on web and mobile; Rule: Engagement events (viewed) are logged with the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Engagement available on web and mobile.
2. Observe the result and verify the full behavior: Engagement available on web and mobile.
**Expected Result:** Engagement available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-022 — Engagement event logging (viewed)
**Type:** Positive
**Covers:** 4.3 → Engagement event logging (viewed); Rule: The engagement analytics is audit-logged with the account and the timestamp.
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, set up the precondition and perform: Engagement event logging (viewed).
2. Observe the result and verify the full behavior: Engagement event logging (viewed).
**Expected Result:** Engagement event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-ST-09-04-023 — Audit logging of the engagement analytics
**Type:** Positive
**Covers:** 4.3 → Audit logging of the engagement analytics
**Preconditions:** A Student account is active and the Student is in the state required for this behavior.
**Steps:**
1. As a Student, perform the action associated with: Audit logging of the engagement analytics.
2. Open the relevant activity / audit log and verify the event is recorded with the account, the action, and the timestamp.
**Expected Result:** The action is audit-logged — the account, the action, and the timestamp are recorded.
**Priority:** Critical
