# 3. Cognitive & Behavioral Insights — Test Cases

User Type: **Parent**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: cognitive_behavioral_insights.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 |
|---------|--------------------|----------|
| 3.1 Cognitive Insights | Comprehension level insights | TC-PT-4-03-001 |
| 3.1 Cognitive Insights | Retention patterns | TC-PT-4-03-002 |
| 3.1 Cognitive Insights | Question-type performance | TC-PT-4-03-003 |
| 3.1 Cognitive Insights | Cognitive skill strengths | TC-PT-4-03-004 |
| 3.1 Cognitive Insights | Cognitive skill development areas | TC-PT-4-03-005 |
| 3.1 Cognitive Insights | Insights available on web and mobile | TC-PT-4-03-006 |
| 3.1 Cognitive Insights | Insight event logging (viewed) | TC-PT-4-03-007 |
| 3.1 Cognitive Insights | Audit logging of the cognitive insights | TC-PT-4-03-008 |
| 3.1 Cognitive Insights | Rule: The insights are based on the child's assessment and activity data. | TC-PT-4-03-001 |
| 3.1 Cognitive Insights | Rule: The cognitive skills are categorized. | TC-PT-4-03-002 |
| 3.1 Cognitive Insights | Rule: Insight events (viewed) are logged with the account and the timestamp. | TC-PT-4-03-003 |
| 3.1 Cognitive Insights | Rule: The cognitive insights is audit-logged with the account and the timestamp. | TC-PT-4-03-004 |
| 3.2 Behavioral Insights | Study consistency insights | TC-PT-4-03-009 |
| 3.2 Behavioral Insights | Focus patterns | TC-PT-4-03-010 |
| 3.2 Behavioral Insights | Engagement trends | TC-PT-4-03-011 |
| 3.2 Behavioral Insights | Habit formation indicators | TC-PT-4-03-012 |
| 3.2 Behavioral Insights | Behavioral trend over time | TC-PT-4-03-013 |
| 3.2 Behavioral Insights | Insights available on web and mobile | TC-PT-4-03-014 |
| 3.2 Behavioral Insights | Insight event logging (viewed) | TC-PT-4-03-015 |
| 3.2 Behavioral Insights | Audit logging of the behavioral insights | TC-PT-4-03-016 |
| 3.2 Behavioral Insights | Rule: The insights are based on the child's activity data. | TC-PT-4-03-009 |
| 3.2 Behavioral Insights | Rule: The behavioral trends are over time. | TC-PT-4-03-010 |
| 3.2 Behavioral Insights | Rule: Insight events (viewed) are logged with the account and the timestamp. | TC-PT-4-03-011 |
| 3.2 Behavioral Insights | Rule: The behavioral insights is audit-logged with the account and the timestamp. | TC-PT-4-03-012 |
| 3.3 Insight Alerts | Alert on a notable improvement | TC-PT-4-03-017 |
| 3.3 Insight Alerts | Alert on a concerning decline | TC-PT-4-03-018 |
| 3.3 Insight Alerts | Alert on a new pattern detected | TC-PT-4-03-019 |
| 3.3 Insight Alerts | In-app and email alert channels | TC-PT-4-03-020 |
| 3.3 Insight Alerts | Alert links to the relevant insight | TC-PT-4-03-021 |
| 3.3 Insight Alerts | Alert event logging (sent, opened) | TC-PT-4-03-022 |
| 3.3 Insight Alerts | Audit logging of the insight alerts | TC-PT-4-03-023 |
| 3.3 Insight Alerts | Rule: Alerts are sent on significant insights. | TC-PT-4-03-017 |
| 3.3 Insight Alerts | Rule: The alert channels are in-app and email. | TC-PT-4-03-018 |
| 3.3 Insight Alerts | Rule: An alert links to the relevant insight. | TC-PT-4-03-019 |
| 3.3 Insight Alerts | Rule: Alert events (sent, opened) are logged with the account and the timestamp. | TC-PT-4-03-020 |
| 3.3 Insight Alerts | Rule: The insight alerts is audit-logged with the account and the timestamp. | TC-PT-4-03-021 |

## 3.1 Cognitive Insights

### TC-PT-4-03-001 — Comprehension level insights
**Type:** Positive
**Covers:** 3.1 → Comprehension level insights; Rule: The insights are based on the child's assessment and activity data.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Comprehension level insights.
2. Observe the result and verify the full behavior: Comprehension level insights.
**Expected Result:** Comprehension level insights — delivered exactly as documented.
**Priority:** Critical

### TC-PT-4-03-002 — Retention patterns
**Type:** Positive
**Covers:** 3.1 → Retention patterns; Rule: The cognitive skills are categorized.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Retention patterns.
2. Observe the result and verify the full behavior: Retention patterns.
**Expected Result:** Retention patterns — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-003 — Question-type performance
**Type:** Positive
**Covers:** 3.1 → Question-type performance; Rule: Insight events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Question-type performance.
2. Observe the result and verify the full behavior: Question-type performance.
**Expected Result:** Question-type performance — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-004 — Cognitive skill strengths
**Type:** Edge
**Covers:** 3.1 → Cognitive skill strengths; Rule: The cognitive insights is audit-logged with the account and the timestamp.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Cognitive skill strengths.
2. Observe the result and verify the full behavior: Cognitive skill strengths.
**Expected Result:** Cognitive skill strengths — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-005 — Cognitive skill development areas
**Type:** Positive
**Covers:** 3.1 → Cognitive skill development areas
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Cognitive skill development areas.
2. Observe the result and verify the full behavior: Cognitive skill development areas.
**Expected Result:** Cognitive skill development areas — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-006 — Insights available on web and mobile
**Type:** Positive
**Covers:** 3.1 → Insights available on web and mobile
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Insights available on web and mobile.
2. Observe the result and verify the full behavior: Insights available on web and mobile.
**Expected Result:** Insights available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-007 — Insight event logging (viewed)
**Type:** Positive
**Covers:** 3.1 → Insight event logging (viewed)
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Insight event logging (viewed).
2. Observe the result and verify the full behavior: Insight event logging (viewed).
**Expected Result:** Insight event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-008 — Audit logging of the cognitive insights
**Type:** Positive
**Covers:** 3.1 → Audit logging of the cognitive insights
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, perform the action associated with: Audit logging of the cognitive insights.
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

## 3.2 Behavioral Insights

### TC-PT-4-03-009 — Study consistency insights
**Type:** Positive
**Covers:** 3.2 → Study consistency insights; Rule: The insights are based on the child's activity data.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Study consistency insights.
2. Observe the result and verify the full behavior: Study consistency insights.
**Expected Result:** Study consistency insights — delivered exactly as documented.
**Priority:** Critical

### TC-PT-4-03-010 — Focus patterns
**Type:** Positive
**Covers:** 3.2 → Focus patterns; Rule: The behavioral trends are over time.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Focus patterns.
2. Observe the result and verify the full behavior: Focus patterns.
**Expected Result:** Focus patterns — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-011 — Engagement trends
**Type:** Positive
**Covers:** 3.2 → Engagement trends; Rule: Insight events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Engagement trends.
2. Observe the result and verify the full behavior: Engagement trends.
**Expected Result:** Engagement trends — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-012 — Habit formation indicators
**Type:** Positive
**Covers:** 3.2 → Habit formation indicators; Rule: The behavioral insights is audit-logged with the account and the timestamp.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Habit formation indicators.
2. Observe the result and verify the full behavior: Habit formation indicators.
**Expected Result:** Habit formation indicators — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-013 — Behavioral trend over time
**Type:** Positive
**Covers:** 3.2 → Behavioral trend over time
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Behavioral trend over time.
2. Observe the result and verify the full behavior: Behavioral trend over time.
**Expected Result:** Behavioral trend over time — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-014 — Insights available on web and mobile
**Type:** Positive
**Covers:** 3.2 → Insights available on web and mobile
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Insights available on web and mobile.
2. Observe the result and verify the full behavior: Insights available on web and mobile.
**Expected Result:** Insights available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-015 — Insight event logging (viewed)
**Type:** Positive
**Covers:** 3.2 → Insight event logging (viewed)
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Insight event logging (viewed).
2. Observe the result and verify the full behavior: Insight event logging (viewed).
**Expected Result:** Insight event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-016 — Audit logging of the behavioral insights
**Type:** Positive
**Covers:** 3.2 → Audit logging of the behavioral insights
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, perform the action associated with: Audit logging of the behavioral insights.
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

## 3.3 Insight Alerts

### TC-PT-4-03-017 — Alert on a notable improvement
**Type:** Positive
**Covers:** 3.3 → Alert on a notable improvement; Rule: Alerts are sent on significant insights.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Alert on a notable improvement.
2. Observe the result and verify the full behavior: Alert on a notable improvement.
**Expected Result:** Alert on a notable improvement — delivered exactly as documented.
**Priority:** Critical

### TC-PT-4-03-018 — Alert on a concerning decline
**Type:** Positive
**Covers:** 3.3 → Alert on a concerning decline; Rule: The alert channels are in-app and email.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Alert on a concerning decline.
2. Observe the result and verify the full behavior: Alert on a concerning decline.
**Expected Result:** Alert on a concerning decline — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-019 — Alert on a new pattern detected
**Type:** Positive
**Covers:** 3.3 → Alert on a new pattern detected; Rule: An alert links to the relevant insight.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Alert on a new pattern detected.
2. Observe the result and verify the full behavior: Alert on a new pattern detected.
**Expected Result:** Alert on a new pattern detected — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-020 — In-app and email alert channels
**Type:** Positive
**Covers:** 3.3 → In-app and email alert channels; Rule: Alert events (sent, opened) are logged with the account and the timestamp.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: In-app and email alert channels.
2. Observe the result and verify the full behavior: In-app and email alert channels.
**Expected Result:** In-app and email alert channels — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-021 — Alert links to the relevant insight
**Type:** Positive
**Covers:** 3.3 → Alert links to the relevant insight; Rule: The insight alerts is audit-logged with the account and the timestamp.
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Alert links to the relevant insight.
2. Observe the result and verify the full behavior: Alert links to the relevant insight.
**Expected Result:** Alert links to the relevant insight — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-022 — Alert event logging (sent, opened)
**Type:** Positive
**Covers:** 3.3 → Alert event logging (sent, opened)
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, set up the precondition and perform: Alert event logging (sent.
2. Observe the result and verify the full behavior: Alert event logging (sent, opened).
**Expected Result:** Alert event logging (sent, opened) — delivered exactly as documented.
**Priority:** High

### TC-PT-4-03-023 — Audit logging of the insight alerts
**Type:** Positive
**Covers:** 3.3 → Audit logging of the insight alerts
**Preconditions:** A Parent account is active and the Parent is in the state required for this behavior.
**Steps:**
1. As a Parent, perform the action associated with: Audit logging of the insight alerts.
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
