# 3. Study Session Management — Test Cases

User Type: **Parent**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: study_session_management.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 Mandatory Study Sessions | Set a mandatory study session | TC-PT-5-03-001 |
| 3.1 Mandatory Study Sessions | Session with subject and duration | TC-PT-5-03-002 |
| 3.1 Mandatory Study Sessions | Child required to complete the session | TC-PT-5-03-003 |
| 3.1 Mandatory Study Sessions | Session completion status | TC-PT-5-03-004 |
| 3.1 Mandatory Study Sessions | Session reminder to the child | TC-PT-5-03-005 |
| 3.1 Mandatory Study Sessions | Mandatory sessions available on web and mobile | TC-PT-5-03-006 |
| 3.1 Mandatory Study Sessions | Session event logging (set, completed, missed) | TC-PT-5-03-007 |
| 3.1 Mandatory Study Sessions | Audit logging of the mandatory study sessions | TC-PT-5-03-008 |
| 3.1 Mandatory Study Sessions | Rule: The session has a subject and duration. | TC-PT-5-03-001 |
| 3.1 Mandatory Study Sessions | Rule: The child is required to complete the session. | TC-PT-5-03-002 |
| 3.1 Mandatory Study Sessions | Rule: A reminder is sent to the child. | TC-PT-5-03-003 |
| 3.1 Mandatory Study Sessions | Rule: Session events (set, completed, missed) are logged with the account and the timestamp. | TC-PT-5-03-004 |
| 3.1 Mandatory Study Sessions | Rule: The mandatory study sessions is audit-logged with the account and the timestamp. | TC-PT-5-03-005 |
| 3.2 Session Scheduling Controls | Set recurring study sessions | TC-PT-5-03-009 |
| 3.2 Session Scheduling Controls | Adjust the session schedule | TC-PT-5-03-010 |
| 3.2 Session Scheduling Controls | Pause sessions during holidays or exams | TC-PT-5-03-011 |
| 3.2 Session Scheduling Controls | Schedule visible to the child | TC-PT-5-03-012 |
| 3.2 Session Scheduling Controls | Schedule conflict detection | TC-PT-5-03-013 |
| 3.2 Session Scheduling Controls | Scheduling available on web and mobile | TC-PT-5-03-014 |
| 3.2 Session Scheduling Controls | Schedule event logging (set, adjusted, paused) | TC-PT-5-03-015 |
| 3.2 Session Scheduling Controls | Audit logging of the session scheduling controls | TC-PT-5-03-016 |
| 3.2 Session Scheduling Controls | Rule: The sessions can be recurring. | TC-PT-5-03-009 |
| 3.2 Session Scheduling Controls | Rule: The schedule can be adjusted and paused. | TC-PT-5-03-010 |
| 3.2 Session Scheduling Controls | Rule: A schedule conflict is detected and flagged. | TC-PT-5-03-011 |
| 3.2 Session Scheduling Controls | Rule: Schedule events (set, adjusted, paused) are logged with the account and the timestamp. | TC-PT-5-03-012 |
| 3.2 Session Scheduling Controls | Rule: The session scheduling controls is audit-logged with the account and the timestamp. | TC-PT-5-03-013 |
| 3.3 Approve or Modify AI Study Plans | Review the AI-generated study plan | TC-PT-5-03-017 |
| 3.3 Approve or Modify AI Study Plans | Approve the plan as-is | TC-PT-5-03-018 |
| 3.3 Approve or Modify AI Study Plans | Modify the plan's focus areas | TC-PT-5-03-019 |
| 3.3 Approve or Modify AI Study Plans | Modify the plan's schedule | TC-PT-5-03-020 |
| 3.3 Approve or Modify AI Study Plans | Plan applied to the child after approval | TC-PT-5-03-021 |
| 3.3 Approve or Modify AI Study Plans | Plan approval history | TC-PT-5-03-022 |
| 3.3 Approve or Modify AI Study Plans | Approval available on web and mobile | TC-PT-5-03-023 |
| 3.3 Approve or Modify AI Study Plans | Approval event logging (reviewed, approved, modified) | TC-PT-5-03-024 |
| 3.3 Approve or Modify AI Study Plans | Audit logging of the approve or modify AI study plans | TC-PT-5-03-025 |
| 3.3 Approve or Modify AI Study Plans | Rule: The plan is reviewed before approval. | TC-PT-5-03-017 |
| 3.3 Approve or Modify AI Study Plans | Rule: The plan can be modified before approval. | TC-PT-5-03-018 |
| 3.3 Approve or Modify AI Study Plans | Rule: The plan is applied after approval. | TC-PT-5-03-019 |
| 3.3 Approve or Modify AI Study Plans | Rule: Approval events (reviewed, approved, modified) are logged with the account and the timestamp. | TC-PT-5-03-020 |
| 3.3 Approve or Modify AI Study Plans | Rule: The approve or modify AI study plans is audit-logged with the account and the timestamp. | TC-PT-5-03-021 |

## 3.1 Mandatory Study Sessions

### TC-PT-5-03-001 — Set a mandatory study session
**Type:** Edge
**Covers:** 3.1 → Set a mandatory study session; Rule: The session has a subject and duration.
**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: Set a mandatory study session.
2. Observe the result and verify the full behavior: Set a mandatory study session.
**Expected Result:** Set a mandatory study session — delivered exactly as documented.
**Priority:** Critical

### TC-PT-5-03-002 — Session with subject and duration
**Type:** Positive
**Covers:** 3.1 → Session with subject and duration; Rule: The child is required to complete the session.
**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 with subject and duration.
2. Observe the result and verify the full behavior: Session with subject and duration.
**Expected Result:** Session with subject and duration — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-003 — Child required to complete the session
**Type:** Edge
**Covers:** 3.1 → Child required to complete the session; Rule: A reminder is sent to the child.
**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: Child required to complete the session.
2. Observe the result and verify the full behavior: Child required to complete the session.
**Expected Result:** Child required to complete the session — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-004 — Session completion status
**Type:** Positive
**Covers:** 3.1 → Session completion status; Rule: Session events (set, completed, missed) 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: Session completion status.
2. Observe the result and verify the full behavior: Session completion status.
**Expected Result:** Session completion status — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-005 — Session reminder to the child
**Type:** Positive
**Covers:** 3.1 → Session reminder to the child; Rule: The mandatory study sessions 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 reminder to the child.
2. Observe the result and verify the full behavior: Session reminder to the child.
**Expected Result:** Session reminder to the child — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-006 — Mandatory sessions available on web and mobile
**Type:** Edge
**Covers:** 3.1 → Mandatory sessions 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: Mandatory sessions available on web and mobile.
2. Observe the result and verify the full behavior: Mandatory sessions available on web and mobile.
**Expected Result:** Mandatory sessions available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-007 — Session event logging (set, completed, missed)
**Type:** Positive
**Covers:** 3.1 → Session event logging (set, completed, missed)
**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 (set.
2. Observe the result and verify the full behavior: Session event logging (set, completed, missed).
**Expected Result:** Session event logging (set, completed, missed) — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-008 — Audit logging of the mandatory study sessions
**Type:** Edge
**Covers:** 3.1 → Audit logging of the mandatory study sessions
**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 mandatory study sessions.
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 Session Scheduling Controls

### TC-PT-5-03-009 — Set recurring study sessions
**Type:** Positive
**Covers:** 3.2 → Set recurring study sessions; Rule: The sessions can be recurring.
**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: Set recurring study sessions.
2. Observe the result and verify the full behavior: Set recurring study sessions.
**Expected Result:** Set recurring study sessions — delivered exactly as documented.
**Priority:** Critical

### TC-PT-5-03-010 — Adjust the session schedule
**Type:** Positive
**Covers:** 3.2 → Adjust the session schedule; Rule: The schedule can be adjusted and paused.
**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: Adjust the session schedule.
2. Observe the result and verify the full behavior: Adjust the session schedule.
**Expected Result:** Adjust the session schedule — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-011 — Pause sessions during holidays or exams
**Type:** Positive
**Covers:** 3.2 → Pause sessions during holidays or exams; Rule: A schedule conflict is detected and flagged.
**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: Pause sessions during holidays or exams.
2. Observe the result and verify the full behavior: Pause sessions during holidays or exams.
**Expected Result:** Pause sessions during holidays or exams — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-012 — Schedule visible to the child
**Type:** Positive
**Covers:** 3.2 → Schedule visible to the child; Rule: Schedule events (set, adjusted, paused) 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: Schedule visible to the child.
2. Observe the result and verify the full behavior: Schedule visible to the child.
**Expected Result:** Schedule visible to the child — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-013 — Schedule conflict detection
**Type:** Positive
**Covers:** 3.2 → Schedule conflict detection; Rule: The session scheduling controls 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: Schedule conflict detection.
2. Observe the result and verify the full behavior: Schedule conflict detection.
**Expected Result:** Schedule conflict detection — delivered exactly as documented.
**Priority:** High

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

### TC-PT-5-03-015 — Schedule event logging (set, adjusted, paused)
**Type:** Positive
**Covers:** 3.2 → Schedule event logging (set, adjusted, paused)
**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: Schedule event logging (set.
2. Observe the result and verify the full behavior: Schedule event logging (set, adjusted, paused).
**Expected Result:** Schedule event logging (set, adjusted, paused) — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-016 — Audit logging of the session scheduling controls
**Type:** Positive
**Covers:** 3.2 → Audit logging of the session scheduling controls
**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 session scheduling controls.
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 Approve or Modify AI Study Plans

### TC-PT-5-03-017 — Review the AI-generated study plan
**Type:** Positive
**Covers:** 3.3 → Review the AI-generated study plan; Rule: The plan is reviewed before approval.
**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: Review the AI-generated study plan.
2. Observe the result and verify the full behavior: Review the AI-generated study plan.
**Expected Result:** Review the AI-generated study plan — delivered exactly as documented.
**Priority:** Critical

### TC-PT-5-03-018 — Approve the plan as-is
**Type:** Positive
**Covers:** 3.3 → Approve the plan as-is; Rule: The plan can be modified before approval.
**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: Approve the plan as-is.
2. Observe the result and verify the full behavior: Approve the plan as-is.
**Expected Result:** Approve the plan as-is — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-019 — Modify the plan's focus areas
**Type:** Positive
**Covers:** 3.3 → Modify the plan's focus areas; Rule: The plan is applied after approval.
**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: Modify the plan's focus areas.
2. Observe the result and verify the full behavior: Modify the plan's focus areas.
**Expected Result:** Modify the plan's focus areas — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-020 — Modify the plan's schedule
**Type:** Positive
**Covers:** 3.3 → Modify the plan's schedule; Rule: Approval events (reviewed, approved, modified) 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: Modify the plan's schedule.
2. Observe the result and verify the full behavior: Modify the plan's schedule.
**Expected Result:** Modify the plan's schedule — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-021 — Plan applied to the child after approval
**Type:** Positive
**Covers:** 3.3 → Plan applied to the child after approval; Rule: The approve or modify AI study plans 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: Plan applied to the child after approval.
2. Observe the result and verify the full behavior: Plan applied to the child after approval.
**Expected Result:** Plan applied to the child after approval — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-022 — Plan approval history
**Type:** Positive
**Covers:** 3.3 → Plan approval history
**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: Plan approval history.
2. Observe the result and verify the full behavior: Plan approval history.
**Expected Result:** Plan approval history — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-023 — Approval available on web and mobile
**Type:** Positive
**Covers:** 3.3 → Approval 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: Approval available on web and mobile.
2. Observe the result and verify the full behavior: Approval available on web and mobile.
**Expected Result:** Approval available on web and mobile — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-024 — Approval event logging (reviewed, approved, modified)
**Type:** Positive
**Covers:** 3.3 → Approval event logging (reviewed, approved, modified)
**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: Approval event logging (reviewed.
2. Observe the result and verify the full behavior: Approval event logging (reviewed, approved, modified).
**Expected Result:** Approval event logging (reviewed, approved, modified) — delivered exactly as documented.
**Priority:** High

### TC-PT-5-03-025 — Audit logging of the approve or modify AI study plans
**Type:** Positive
**Covers:** 3.3 → Audit logging of the approve or modify AI study plans
**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 approve or modify AI study plans.
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
