# 3. Tier Commission Breakdown — Test Cases

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

## Test Execution Policy

- Zero tolerance: any deviation from the documented behavior is a defect.
- Every failed test is logged with a Bug ID, the feature, the sub-feature, the expected vs actual result, and the severity; 100% of bugs are fixed before the group passes.
- 100% pass rate is required for the group to be marked complete.

## Coverage Matrix

| Feature | Sub-feature / Rule | Test IDs |
|---------|--------------------|----------|
| 3.1 | Tier 1 commission amount | TC-AF-5-03-001 |
| 3.1 | Tier 2 commission amount | TC-AF-5-03-002 |
| 3.1 | Combined commission total | TC-AF-5-03-003 |
| 3.1 | Commission by tier by period | TC-AF-5-03-004 |
| 3.1 | Tier contribution percentage | TC-AF-5-03-005 |
| 3.1 | Breakdown available on web and mobile | TC-AF-5-03-006 |
| 3.1 | Breakdown event logging (viewed) | TC-AF-5-03-007 |
| 3.1 | Audit logging of the commission by tier | TC-AF-5-03-008 |
| 3.1 | Rule: The commission is broken down by tier. | TC-AF-5-03-001 |
| 3.1 | Rule: The tier contribution percentage is shown. | TC-AF-5-03-002 |
| 3.1 | Rule: Breakdown events (viewed) are logged with the account and the timestamp. | TC-AF-5-03-003 |
| 3.1 | Rule: The commission by tier is audit-logged with the account and the timestamp. | TC-AF-5-03-004 |
| 3.2 | Commission entries with tier, source, amount, date | TC-AF-5-03-009 |
| 3.2 | Filter by tier | TC-AF-5-03-010 |
| 3.2 | View a tier commission entry | TC-AF-5-03-011 |
| 3.2 | Tier commission by source | TC-AF-5-03-012 |
| 3.2 | Tier commission detail available on web and mobile | TC-AF-5-03-013 |
| 3.2 | Detail event logging (viewed) | TC-AF-5-03-014 |
| 3.2 | Audit logging of the tier commission detail | TC-AF-5-03-015 |
| 3.2 | Rule: The entries show tier, source, amount, and date. | TC-AF-5-03-009 |
| 3.2 | Rule: The entries can be filtered by tier. | TC-AF-5-03-010 |
| 3.2 | Rule: Detail events (viewed) are logged with the account and the timestamp. | TC-AF-5-03-011 |
| 3.2 | Rule: The tier commission detail is audit-logged with the account and the timestamp. | TC-AF-5-03-012 |
| 3.3 | Tier 1 earnings trend | TC-AF-5-03-016 |
| 3.3 | Tier 2 earnings trend | TC-AF-5-03-017 |
| 3.3 | Combined tier earnings trend | TC-AF-5-03-018 |
| 3.3 | Tier growth over time | TC-AF-5-03-019 |
| 3.3 | Select the trend period | TC-AF-5-03-020 |
| 3.3 | Trend available on web and mobile | TC-AF-5-03-021 |
| 3.3 | Trend event logging (viewed) | TC-AF-5-03-022 |
| 3.3 | Audit logging of the tier earnings trend | TC-AF-5-03-023 |
| 3.3 | Rule: The trend shows Tier 1 and Tier 2 separately. | TC-AF-5-03-016 |
| 3.3 | Rule: The period can be selected. | TC-AF-5-03-017 |
| 3.3 | Rule: Trend events (viewed) are logged with the account and the timestamp. | TC-AF-5-03-018 |
| 3.3 | Rule: The tier earnings trend is audit-logged with the account and the timestamp. | TC-AF-5-03-019 |

## 3.1 Commission by Tier

### TC-AF-5-03-001 — Tier 1 commission amount
**Type:** Positive
**Covers:** 3.1 → Tier 1 commission amount; Rule: The commission is broken down by tier.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier 1 commission amount.
2. Observe the result and verify the full behavior: Tier 1 commission amount.
**Expected Result:** Tier 1 commission amount — delivered exactly as documented.
**Priority:** Critical

### TC-AF-5-03-002 — Tier 2 commission amount
**Type:** Positive
**Covers:** 3.1 → Tier 2 commission amount; Rule: The tier contribution percentage is shown.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier 2 commission amount.
2. Observe the result and verify the full behavior: Tier 2 commission amount.
**Expected Result:** Tier 2 commission amount — delivered exactly as documented.
**Priority:** High

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

### TC-AF-5-03-004 — Commission by tier by period
**Type:** Positive
**Covers:** 3.1 → Commission by tier by period; Rule: The commission by tier is audit-logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Commission by tier by period.
2. Observe the result and verify the full behavior: Commission by tier by period.
**Expected Result:** Commission by tier by period — delivered exactly as documented.
**Priority:** High

### TC-AF-5-03-005 — Tier contribution percentage
**Type:** Positive
**Covers:** 3.1 → Tier contribution percentage
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier contribution percentage.
2. Observe the result and verify the full behavior: Tier contribution percentage.
**Expected Result:** Tier contribution percentage — delivered exactly as documented.
**Priority:** High

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

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

### TC-AF-5-03-008 — Audit logging of the commission by tier
**Type:** Positive
**Covers:** 3.1 → Audit logging of the commission by tier
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, perform the commission by tier action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The commission by tier action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 3.2 Tier Commission Detail

### TC-AF-5-03-009 — Commission entries with tier, source, amount, date
**Type:** Positive
**Covers:** 3.2 → Commission entries with tier, source, amount, date; Rule: The entries show tier, source, amount, and date.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Commission entries with tier, source, amount, date.
2. Observe the result and verify the full behavior: Commission entries with tier, source, amount, date.
**Expected Result:** Commission entries with tier, source, amount, date — delivered exactly as documented.
**Priority:** Critical

### TC-AF-5-03-010 — Filter by tier
**Type:** Positive
**Covers:** 3.2 → Filter by tier; Rule: The entries can be filtered by tier.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Filter by tier.
2. Observe the result and verify the full behavior: Filter by tier.
**Expected Result:** Filter by tier — delivered exactly as documented.
**Priority:** High

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

### TC-AF-5-03-012 — Tier commission by source
**Type:** Positive
**Covers:** 3.2 → Tier commission by source; Rule: The tier commission detail is audit-logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier commission by source.
2. Observe the result and verify the full behavior: Tier commission by source.
**Expected Result:** Tier commission by source — delivered exactly as documented.
**Priority:** High

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

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

### TC-AF-5-03-015 — Audit logging of the tier commission detail
**Type:** Positive
**Covers:** 3.2 → Audit logging of the tier commission detail
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, perform the tier commission detail action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The tier commission detail action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 3.3 Tier Earnings Trend

### TC-AF-5-03-016 — Tier 1 earnings trend
**Type:** Positive
**Covers:** 3.3 → Tier 1 earnings trend; Rule: The trend shows Tier 1 and Tier 2 separately.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier 1 earnings trend.
2. Observe the result and verify the full behavior: Tier 1 earnings trend.
**Expected Result:** Tier 1 earnings trend — delivered exactly as documented.
**Priority:** Critical

### TC-AF-5-03-017 — Tier 2 earnings trend
**Type:** Positive
**Covers:** 3.3 → Tier 2 earnings trend; Rule: The period can be selected.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier 2 earnings trend.
2. Observe the result and verify the full behavior: Tier 2 earnings trend.
**Expected Result:** Tier 2 earnings trend — delivered exactly as documented.
**Priority:** High

### TC-AF-5-03-018 — Combined tier earnings trend
**Type:** Positive
**Covers:** 3.3 → Combined tier earnings trend; Rule: Trend events (viewed) are logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Combined tier earnings trend.
2. Observe the result and verify the full behavior: Combined tier earnings trend.
**Expected Result:** Combined tier earnings trend — delivered exactly as documented.
**Priority:** High

### TC-AF-5-03-019 — Tier growth over time
**Type:** Positive
**Covers:** 3.3 → Tier growth over time; Rule: The tier earnings trend is audit-logged with the account and the timestamp.
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Tier growth over time.
2. Observe the result and verify the full behavior: Tier growth over time.
**Expected Result:** Tier growth over time — delivered exactly as documented.
**Priority:** High

### TC-AF-5-03-020 — Select the trend period
**Type:** Positive
**Covers:** 3.3 → Select the trend period
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, set up the precondition and perform: Select the trend period.
2. Observe the result and verify the full behavior: Select the trend period.
**Expected Result:** Select the trend period — delivered exactly as documented.
**Priority:** High

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

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

### TC-AF-5-03-023 — Audit logging of the tier earnings trend
**Type:** Positive
**Covers:** 3.3 → Audit logging of the tier earnings trend
**Preconditions:** A Affiliate account is active and the Affiliate is in the state required for this behavior.
**Steps:**
1. As a Affiliate, perform the tier earnings trend action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The tier earnings trend action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical
