# 1. Shared Goal Setting — Test Cases

User Type: **Parent**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: shared_goal_setting.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 Set Shared Study Goals | Propose a study goal | TC-PT-9-01-001 |
| 1.1 Set Shared Study Goals | Child agrees to the goal | TC-PT-9-01-002 |
| 1.1 Set Shared Study Goals | Goal types (score, completion, habit) | TC-PT-9-01-003 |
| 1.1 Set Shared Study Goals | Goal with a target and deadline | TC-PT-9-01-004 |
| 1.1 Set Shared Study Goals | Goal tracked for both Parent and child | TC-PT-9-01-005 |
| 1.1 Set Shared Study Goals | Goal list for the child | TC-PT-9-01-006 |
| 1.1 Set Shared Study Goals | Goals available on web and mobile | TC-PT-9-01-007 |
| 1.1 Set Shared Study Goals | Goal event logging (proposed, agreed, tracked) | TC-PT-9-01-008 |
| 1.1 Set Shared Study Goals | Audit logging of the set shared study goals | TC-PT-9-01-009 |
| 1.1 Set Shared Study Goals | Rule: The goal is proposed by the Parent and agreed by the child. | TC-PT-9-01-001 |
| 1.1 Set Shared Study Goals | Rule: The goal has a target and deadline. | TC-PT-9-01-002 |
| 1.1 Set Shared Study Goals | Rule: The goal is tracked for both the Parent and the child. | TC-PT-9-01-003 |
| 1.1 Set Shared Study Goals | Rule: Goal events (proposed, agreed, tracked) are logged with the account and the timestamp. | TC-PT-9-01-004 |
| 1.1 Set Shared Study Goals | Rule: The set shared study goals is audit-logged with the account and the timestamp. | TC-PT-9-01-005 |
| 1.2 Collaborative Goal Tracking | Progress toward the shared goal | TC-PT-9-01-010 |
| 1.2 Collaborative Goal Tracking | Current progress and remaining effort | TC-PT-9-01-011 |
| 1.2 Collaborative Goal Tracking | Time left to the deadline | TC-PT-9-01-012 |
| 1.2 Collaborative Goal Tracking | Progress updates as the child works | TC-PT-9-01-013 |
| 1.2 Collaborative Goal Tracking | Progress visible to both Parent and child | TC-PT-9-01-014 |
| 1.2 Collaborative Goal Tracking | Tracking available on web and mobile | TC-PT-9-01-015 |
| 1.2 Collaborative Goal Tracking | Tracking event logging (viewed) | TC-PT-9-01-016 |
| 1.2 Collaborative Goal Tracking | Audit logging of the collaborative goal tracking | TC-PT-9-01-017 |
| 1.2 Collaborative Goal Tracking | Rule: The progress is toward the shared goal. | TC-PT-9-01-010 |
| 1.2 Collaborative Goal Tracking | Rule: The progress updates as the child works. | TC-PT-9-01-011 |
| 1.2 Collaborative Goal Tracking | Rule: The progress is visible to both the Parent and the child. | TC-PT-9-01-012 |
| 1.2 Collaborative Goal Tracking | Rule: Tracking events (viewed) are logged with the account and the timestamp. | TC-PT-9-01-013 |
| 1.2 Collaborative Goal Tracking | Rule: The collaborative goal tracking is audit-logged with the account and the timestamp. | TC-PT-9-01-014 |
| 1.3 Goal Review and Adjustment | Periodic goal review | TC-PT-9-01-018 |
| 1.3 Goal Review and Adjustment | Adjust a goal's target | TC-PT-9-01-019 |
| 1.3 Goal Review and Adjustment | Adjust a goal's deadline | TC-PT-9-01-020 |
| 1.3 Goal Review and Adjustment | Review conversation between Parent and child | TC-PT-9-01-021 |
| 1.3 Goal Review and Adjustment | Adjustment recorded | TC-PT-9-01-022 |
| 1.3 Goal Review and Adjustment | Review history | TC-PT-9-01-023 |
| 1.3 Goal Review and Adjustment | Review available on web and mobile | TC-PT-9-01-024 |
| 1.3 Goal Review and Adjustment | Review event logging (reviewed, adjusted) | TC-PT-9-01-025 |
| 1.3 Goal Review and Adjustment | Audit logging of the goal review and adjustment | TC-PT-9-01-026 |
| 1.3 Goal Review and Adjustment | Rule: The review is periodic and collaborative. | TC-PT-9-01-018 |
| 1.3 Goal Review and Adjustment | Rule: The goal's target and deadline can be adjusted. | TC-PT-9-01-019 |
| 1.3 Goal Review and Adjustment | Rule: The adjustment is recorded. | TC-PT-9-01-020 |
| 1.3 Goal Review and Adjustment | Rule: Review events (reviewed, adjusted) are logged with the account and the timestamp. | TC-PT-9-01-021 |
| 1.3 Goal Review and Adjustment | Rule: The goal review and adjustment is audit-logged with the account and the timestamp. | TC-PT-9-01-022 |

## 1.1 Set Shared Study Goals

### TC-PT-9-01-001 — Propose a study goal
**Type:** Positive
**Covers:** 1.1 → Propose a study goal; Rule: The goal is proposed by the Parent and agreed by 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: Propose a study goal.
2. Observe the result and verify the full behavior: Propose a study goal.
**Expected Result:** Propose a study goal — delivered exactly as documented.
**Priority:** Critical

### TC-PT-9-01-002 — Child agrees to the goal
**Type:** Positive
**Covers:** 1.1 → Child agrees to the goal; Rule: The goal has a target and deadline.
**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 agrees to the goal.
2. Observe the result and verify the full behavior: Child agrees to the goal.
**Expected Result:** Child agrees to the goal — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-003 — Goal types (score, completion, habit)
**Type:** Positive
**Covers:** 1.1 → Goal types (score, completion, habit); Rule: The goal is tracked for both the Parent and 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: Goal types (score.
2. Observe the result and verify the full behavior: Goal types (score, completion, habit).
**Expected Result:** Goal types (score, completion, habit) — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-004 — Goal with a target and deadline
**Type:** Positive
**Covers:** 1.1 → Goal with a target and deadline; Rule: Goal events (proposed, agreed, tracked) 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: Goal with a target and deadline.
2. Observe the result and verify the full behavior: Goal with a target and deadline.
**Expected Result:** Goal with a target and deadline — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-005 — Goal tracked for both Parent and child
**Type:** Positive
**Covers:** 1.1 → Goal tracked for both Parent and child; Rule: The set shared study goals 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: Goal tracked for both Parent and child.
2. Observe the result and verify the full behavior: Goal tracked for both Parent and child.
**Expected Result:** Goal tracked for both Parent and child — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-006 — Goal list for the child
**Type:** Positive
**Covers:** 1.1 → Goal list for 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: Goal list for the child.
2. Observe the result and verify the full behavior: Goal list for the child.
**Expected Result:** Goal list for the child — delivered exactly as documented.
**Priority:** High

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

### TC-PT-9-01-008 — Goal event logging (proposed, agreed, tracked)
**Type:** Positive
**Covers:** 1.1 → Goal event logging (proposed, agreed, tracked)
**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: Goal event logging (proposed.
2. Observe the result and verify the full behavior: Goal event logging (proposed, agreed, tracked).
**Expected Result:** Goal event logging (proposed, agreed, tracked) — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-009 — Audit logging of the set shared study goals
**Type:** Positive
**Covers:** 1.1 → Audit logging of the set shared study goals
**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 set shared study goals.
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 Collaborative Goal Tracking

### TC-PT-9-01-010 — Progress toward the shared goal
**Type:** Positive
**Covers:** 1.2 → Progress toward the shared goal; Rule: The progress is toward the shared goal.
**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: Progress toward the shared goal.
2. Observe the result and verify the full behavior: Progress toward the shared goal.
**Expected Result:** Progress toward the shared goal — delivered exactly as documented.
**Priority:** Critical

### TC-PT-9-01-011 — Current progress and remaining effort
**Type:** Positive
**Covers:** 1.2 → Current progress and remaining effort; Rule: The progress updates as the child works.
**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 progress and remaining effort.
2. Observe the result and verify the full behavior: Current progress and remaining effort.
**Expected Result:** Current progress and remaining effort — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-012 — Time left to the deadline
**Type:** Positive
**Covers:** 1.2 → Time left to the deadline; Rule: The progress is visible to both the Parent and 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: Time left to the deadline.
2. Observe the result and verify the full behavior: Time left to the deadline.
**Expected Result:** Time left to the deadline — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-013 — Progress updates as the child works
**Type:** Positive
**Covers:** 1.2 → Progress updates as the child works; Rule: Tracking 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: Progress updates as the child works.
2. Observe the result and verify the full behavior: Progress updates as the child works.
**Expected Result:** Progress updates as the child works — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-014 — Progress visible to both Parent and child
**Type:** Positive
**Covers:** 1.2 → Progress visible to both Parent and child; Rule: The collaborative goal tracking 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: Progress visible to both Parent and child.
2. Observe the result and verify the full behavior: Progress visible to both Parent and child.
**Expected Result:** Progress visible to both Parent and child — delivered exactly as documented.
**Priority:** High

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

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

### TC-PT-9-01-017 — Audit logging of the collaborative goal tracking
**Type:** Positive
**Covers:** 1.2 → Audit logging of the collaborative goal tracking
**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 collaborative goal tracking.
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 Goal Review and Adjustment

### TC-PT-9-01-018 — Periodic goal review
**Type:** Positive
**Covers:** 1.3 → Periodic goal review; Rule: The review is periodic and collaborative.
**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: Periodic goal review.
2. Observe the result and verify the full behavior: Periodic goal review.
**Expected Result:** Periodic goal review — delivered exactly as documented.
**Priority:** Critical

### TC-PT-9-01-019 — Adjust a goal's target
**Type:** Positive
**Covers:** 1.3 → Adjust a goal's target; Rule: The goal's target and deadline can be adjusted.
**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 a goal's target.
2. Observe the result and verify the full behavior: Adjust a goal's target.
**Expected Result:** Adjust a goal's target — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-020 — Adjust a goal's deadline
**Type:** Positive
**Covers:** 1.3 → Adjust a goal's deadline; Rule: The adjustment is recorded.
**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 a goal's deadline.
2. Observe the result and verify the full behavior: Adjust a goal's deadline.
**Expected Result:** Adjust a goal's deadline — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-021 — Review conversation between Parent and child
**Type:** Positive
**Covers:** 1.3 → Review conversation between Parent and child; Rule: Review events (reviewed, adjusted) 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: Review conversation between Parent and child.
2. Observe the result and verify the full behavior: Review conversation between Parent and child.
**Expected Result:** Review conversation between Parent and child — delivered exactly as documented.
**Priority:** High

### TC-PT-9-01-022 — Adjustment recorded
**Type:** Positive
**Covers:** 1.3 → Adjustment recorded; Rule: The goal review and adjustment 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: Adjustment recorded.
2. Observe the result and verify the full behavior: Adjustment recorded.
**Expected Result:** Adjustment recorded — delivered exactly as documented.
**Priority:** High

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

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

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

### TC-PT-9-01-026 — Audit logging of the goal review and adjustment
**Type:** Positive
**Covers:** 1.3 → Audit logging of the goal review and adjustment
**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 goal review and adjustment.
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
