# 1. Real-Time Activity Monitoring — Test Cases

User Type: **Parent**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: real_time_activity.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 |
|---------|--------------------|----------|
| 1.1 Real-Time Learning Activity | Real-time view of the child's current activity | TC-PT-3-01-001 |
| 1.1 Real-Time Learning Activity | Current course/topic being studied | TC-PT-3-01-002 |
| 1.1 Real-Time Learning Activity | Activity type (video, quiz, flashcards) | TC-PT-3-01-003 |
| 1.1 Real-Time Learning Activity | Activity start time | TC-PT-3-01-004 |
| 1.1 Real-Time Learning Activity | Live status (active, idle) | TC-PT-3-01-005 |
| 1.1 Real-Time Learning Activity | Real-time view available on web and mobile | TC-PT-3-01-006 |
| 1.1 Real-Time Learning Activity | Activity event logging (viewed) | TC-PT-3-01-007 |
| 1.1 Real-Time Learning Activity | Audit logging of the real-time learning activity | TC-PT-3-01-008 |
| 1.1 Real-Time Learning Activity | Rule: The real-time view shows the child's current activity. | TC-PT-3-01-001 |
| 1.1 Real-Time Learning Activity | Rule: The activity type and start time are shown. | TC-PT-3-01-002 |
| 1.1 Real-Time Learning Activity | Rule: The live status is active or idle. | TC-PT-3-01-003 |
| 1.1 Real-Time Learning Activity | Rule: Activity events (viewed) are logged with the account and the timestamp. | TC-PT-3-01-004 |
| 1.1 Real-Time Learning Activity | Rule: The real-time learning activity is audit-logged with the account and the timestamp. | TC-PT-3-01-005 |
| 1.2 Activity Feed | Feed of the child's recent activities | TC-PT-3-01-009 |
| 1.2 Activity Feed | Activity types (video, quiz, flashcards, session) | TC-PT-3-01-010 |
| 1.2 Activity Feed | Reverse chronological order | TC-PT-3-01-011 |
| 1.2 Activity Feed | Filter by activity type and date | TC-PT-3-01-012 |
| 1.2 Activity Feed | Activity detail on tap | TC-PT-3-01-013 |
| 1.2 Activity Feed | Feed available on web and mobile | TC-PT-3-01-014 |
| 1.2 Activity Feed | Feed event logging (viewed, filtered) | TC-PT-3-01-015 |
| 1.2 Activity Feed | Audit logging of the activity feed | TC-PT-3-01-016 |
| 1.2 Activity Feed | Rule: The feed is in reverse chronological order. | TC-PT-3-01-009 |
| 1.2 Activity Feed | Rule: Filters operate on activity type and date. | TC-PT-3-01-010 |
| 1.2 Activity Feed | Rule: An activity detail opens on tap. | TC-PT-3-01-011 |
| 1.2 Activity Feed | Rule: Feed events (viewed, filtered) are logged with the account and the timestamp. | TC-PT-3-01-012 |
| 1.2 Activity Feed | Rule: The activity feed is audit-logged with the account and the timestamp. | TC-PT-3-01-013 |
| 1.3 Current Session Details | Current session start time | TC-PT-3-01-017 |
| 1.3 Current Session Details | Activities within the current session | TC-PT-3-01-018 |
| 1.3 Current Session Details | Elapsed session time | TC-PT-3-01-019 |
| 1.3 Current Session Details | Session topics covered | TC-PT-3-01-020 |
| 1.3 Current Session Details | Session live status | TC-PT-3-01-021 |
| 1.3 Current Session Details | Session details available on web and mobile | TC-PT-3-01-022 |
| 1.3 Current Session Details | Session event logging (viewed) | TC-PT-3-01-023 |
| 1.3 Current Session Details | Audit logging of the current session details | TC-PT-3-01-024 |
| 1.3 Current Session Details | Rule: The session details show start time, activities, and elapsed time. | TC-PT-3-01-017 |
| 1.3 Current Session Details | Rule: The session topics covered are listed. | TC-PT-3-01-018 |
| 1.3 Current Session Details | Rule: Session events (viewed) are logged with the account and the timestamp. | TC-PT-3-01-019 |
| 1.3 Current Session Details | Rule: The current session details is audit-logged with the account and the timestamp. | TC-PT-3-01-020 |

## 1.1 Real-Time Learning Activity

### TC-PT-3-01-001 — Real-time view of the child's current activity
**Type:** Positive
**Covers:** 1.1 → Real-time view of the child's current activity; Rule: The real-time view shows the child's current activity.
**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: Real-time view of the child's current activity.
2. Observe the result and verify the full behavior: Real-time view of the child's current activity.
**Expected Result:** Real-time view of the child's current activity — delivered exactly as documented.
**Priority:** Critical

### TC-PT-3-01-002 — Current course/topic being studied
**Type:** Positive
**Covers:** 1.1 → Current course/topic being studied; Rule: The activity type and start time are shown.
**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: Current course/topic being studied.
2. Observe the result and verify the full behavior: Current course/topic being studied.
**Expected Result:** Current course/topic being studied — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-003 — Activity type (video, quiz, flashcards)
**Type:** Positive
**Covers:** 1.1 → Activity type (video, quiz, flashcards); Rule: The live status is active or idle.
**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: Activity type (video.
2. Observe the result and verify the full behavior: Activity type (video, quiz, flashcards).
**Expected Result:** Activity type (video, quiz, flashcards) — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-004 — Activity start time
**Type:** Positive
**Covers:** 1.1 → Activity start time; Rule: Activity 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: Activity start time.
2. Observe the result and verify the full behavior: Activity start time.
**Expected Result:** Activity start time — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-005 — Live status (active, idle)
**Type:** Positive
**Covers:** 1.1 → Live status (active, idle); Rule: The real-time learning activity 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: Live status (active.
2. Observe the result and verify the full behavior: Live status (active, idle).
**Expected Result:** Live status (active, idle) — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-006 — Real-time view available on web and mobile
**Type:** Positive
**Covers:** 1.1 → Real-time view 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: Real-time view available on web and mobile.
2. Observe the result and verify the full behavior: Real-time view available on web and mobile.
**Expected Result:** Real-time view available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-007 — Activity event logging (viewed)
**Type:** Positive
**Covers:** 1.1 → Activity 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: Activity event logging (viewed).
2. Observe the result and verify the full behavior: Activity event logging (viewed).
**Expected Result:** Activity event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-008 — Audit logging of the real-time learning activity
**Type:** Positive
**Covers:** 1.1 → Audit logging of the real-time learning activity
**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 real-time learning activity.
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

## 1.2 Activity Feed

### TC-PT-3-01-009 — Feed of the child's recent activities
**Type:** Positive
**Covers:** 1.2 → Feed of the child's recent activities; Rule: The feed is in reverse chronological order.
**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: Feed of the child's recent activities.
2. Observe the result and verify the full behavior: Feed of the child's recent activities.
**Expected Result:** Feed of the child's recent activities — delivered exactly as documented.
**Priority:** Critical

### TC-PT-3-01-010 — Activity types (video, quiz, flashcards, session)
**Type:** Positive
**Covers:** 1.2 → Activity types (video, quiz, flashcards, session); Rule: Filters operate on activity type and date.
**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: Activity types (video.
2. Observe the result and verify the full behavior: Activity types (video, quiz, flashcards, session).
**Expected Result:** Activity types (video, quiz, flashcards, session) — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-011 — Reverse chronological order
**Type:** Positive
**Covers:** 1.2 → Reverse chronological order; Rule: An activity detail opens on tap.
**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: Reverse chronological order.
2. Observe the result and verify the full behavior: Reverse chronological order.
**Expected Result:** Reverse chronological order — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-012 — Filter by activity type and date
**Type:** Positive
**Covers:** 1.2 → Filter by activity type and date; Rule: Feed events (viewed, filtered) 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: Filter by activity type and date.
2. Observe the result and verify the full behavior: Filter by activity type and date.
**Expected Result:** Filter by activity type and date — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-013 — Activity detail on tap
**Type:** Positive
**Covers:** 1.2 → Activity detail on tap; Rule: The activity feed 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: Activity detail on tap.
2. Observe the result and verify the full behavior: Activity detail on tap.
**Expected Result:** Activity detail on tap — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-014 — Feed available on web and mobile
**Type:** Positive
**Covers:** 1.2 → Feed 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: Feed available on web and mobile.
2. Observe the result and verify the full behavior: Feed available on web and mobile.
**Expected Result:** Feed available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-015 — Feed event logging (viewed, filtered)
**Type:** Positive
**Covers:** 1.2 → Feed event logging (viewed, filtered)
**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: Feed event logging (viewed.
2. Observe the result and verify the full behavior: Feed event logging (viewed, filtered).
**Expected Result:** Feed event logging (viewed, filtered) — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-016 — Audit logging of the activity feed
**Type:** Positive
**Covers:** 1.2 → Audit logging of the activity feed
**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 activity feed.
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

## 1.3 Current Session Details

### TC-PT-3-01-017 — Current session start time
**Type:** Positive
**Covers:** 1.3 → Current session start time; Rule: The session details show start time, activities, and elapsed 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: Current session start time.
2. Observe the result and verify the full behavior: Current session start time.
**Expected Result:** Current session start time — delivered exactly as documented.
**Priority:** Critical

### TC-PT-3-01-018 — Activities within the current session
**Type:** Positive
**Covers:** 1.3 → Activities within the current session; Rule: The session topics covered are listed.
**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: Activities within the current session.
2. Observe the result and verify the full behavior: Activities within the current session.
**Expected Result:** Activities within the current session — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-019 — Elapsed session time
**Type:** Positive
**Covers:** 1.3 → Elapsed session time; Rule: Session 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: Elapsed session time.
2. Observe the result and verify the full behavior: Elapsed session time.
**Expected Result:** Elapsed session time — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-020 — Session topics covered
**Type:** Positive
**Covers:** 1.3 → Session topics covered; Rule: The current session details 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: Session topics covered.
2. Observe the result and verify the full behavior: Session topics covered.
**Expected Result:** Session topics covered — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-021 — Session live status
**Type:** Positive
**Covers:** 1.3 → Session live status
**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: Session live status.
2. Observe the result and verify the full behavior: Session live status.
**Expected Result:** Session live status — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-022 — Session details available on web and mobile
**Type:** Positive
**Covers:** 1.3 → Session details 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: Session details available on web and mobile.
2. Observe the result and verify the full behavior: Session details available on web and mobile.
**Expected Result:** Session details available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-023 — Session event logging (viewed)
**Type:** Positive
**Covers:** 1.3 → Session 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: Session event logging (viewed).
2. Observe the result and verify the full behavior: Session event logging (viewed).
**Expected Result:** Session event logging (viewed) — delivered exactly as documented.
**Priority:** High

### TC-PT-3-01-024 — Audit logging of the current session details
**Type:** Positive
**Covers:** 1.3 → Audit logging of the current session details
**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 current session details.
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
