# 4. Branding Analytics — Test Cases

User Type: **Super Administrator**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: branding_analytics.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 |
|---------|--------------------|----------|
| 4.1 Branded Page Engagement | Page views | TC-SA-WL-04-001 |
| 4.1 Branded Page Engagement | Engagement rate | TC-SA-WL-04-002 |
| 4.1 Branded Page Engagement | Conversion | TC-SA-WL-04-003 |
| 4.1 Branded Page Engagement | Per-institute breakdown | TC-SA-WL-04-004 |
| 4.1 Branded Page Engagement | Rule: a report is exportable in CSV | TC-SA-WL-04-005 |
| 4.1 Branded Page Engagement | Rule: a report reflects the selected date range | TC-SA-WL-04-006 |
| 4.1 Branded Page Engagement | Rule: report generation is audit-logged | TC-SA-WL-04-007 |
| 4.2 Certificate Issuance Tracking | Issuance count | TC-SA-WL-04-008 |
| 4.2 Certificate Issuance Tracking | Per-template breakdown | TC-SA-WL-04-009 |
| 4.2 Certificate Issuance Tracking | Per-institute breakdown | TC-SA-WL-04-010 |
| 4.2 Certificate Issuance Tracking | Issuance trend | TC-SA-WL-04-011 |
| 4.2 Certificate Issuance Tracking | Rule: a report is exportable in CSV | TC-SA-WL-04-012 |
| 4.2 Certificate Issuance Tracking | Rule: a report reflects the selected date range | TC-SA-WL-04-013 |
| 4.2 Certificate Issuance Tracking | Rule: report generation is audit-logged | TC-SA-WL-04-014 |
| 4.3 Email Template Performance | Send count | TC-SA-WL-04-015 |
| 4.3 Email Template Performance | Open rate | TC-SA-WL-04-016 |
| 4.3 Email Template Performance | Click rate | TC-SA-WL-04-017 |
| 4.3 Email Template Performance | Per-institute breakdown | TC-SA-WL-04-018 |
| 4.3 Email Template Performance | Rule: a report is exportable in CSV | TC-SA-WL-04-019 |
| 4.3 Email Template Performance | Rule: a report reflects the selected date range | TC-SA-WL-04-020 |
| 4.3 Email Template Performance | Rule: report generation is audit-logged | TC-SA-WL-04-021 |
| 4.4 White-Label Adoption Report | Adoption count | TC-SA-WL-04-022 |
| 4.4 White-Label Adoption Report | Feature adoption | TC-SA-WL-04-023 |
| 4.4 White-Label Adoption Report | Adoption trend | TC-SA-WL-04-024 |
| 4.4 White-Label Adoption Report | Non-adoption list | TC-SA-WL-04-025 |
| 4.4 White-Label Adoption Report | Rule: a report is exportable in CSV | TC-SA-WL-04-026 |
| 4.4 White-Label Adoption Report | Rule: a report reflects the selected date range | TC-SA-WL-04-027 |
| 4.4 White-Label Adoption Report | Rule: report generation is audit-logged | TC-SA-WL-04-028 |

### TC-SA-WL-04-001 — Page views
**Type:** Positive
**Covers:** 4.1 → Page views: the views of the branded landing pages
**Preconditions:** A Super Admin account is active; branded page views exist.
**Steps:**
1. As a Super Admin, open the branded page engagement analytics.
2. Observe the result and verify the full behavior: the page views are shown.
**Expected Result:** The page views are shown — the count is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-002 — Engagement rate
**Type:** Positive
**Covers:** 4.1 → Engagement rate: the engagement on the branded pages
**Preconditions:** A Super Admin account is active; engagement data exists.
**Steps:**
1. As a Super Admin, review the engagement rate.
2. Observe the result and verify the full behavior: the rate is the interactions over the views.
**Expected Result:** The engagement rate is shown — it is computed correctly, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-003 — Conversion
**Type:** Positive
**Covers:** 4.1 → Conversion: the sign-ups and enrollments from the branded pages
**Preconditions:** A Super Admin account is active; conversions exist.
**Steps:**
1. As a Super Admin, review the conversion.
2. Observe the result and verify the full behavior: the sign-ups and enrollments are shown.
**Expected Result:** The conversion is shown — the count is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-004 — Per-institute breakdown
**Type:** Positive
**Covers:** 4.1 → Per-institute breakdown: the engagement per institute
**Preconditions:** A Super Admin account is active; engagement exists for multiple institutes.
**Steps:**
1. As a Super Admin, view the per-institute breakdown.
2. Observe the result and verify the full behavior: the engagement is separated by institute.
**Expected Result:** The breakdown is shown — the institutes are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-005 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.1 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-006 — Rule: a report reflects the selected date range
**Type:** Positive
**Covers:** 4.1 → Rule: a report reflects the selected date range
**Preconditions:** A Super Admin account is active; data exists across multiple ranges.
**Steps:**
1. As a Super Admin, select a date range and view the report.
2. Observe the result and verify the full behavior: only data in the range is shown.
**Expected Result:** The range is applied — the data is filtered, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-007 — Rule: report generation is audit-logged
**Type:** Positive
**Covers:** 4.1 → Audit logging of branded page engagement
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, generate the report.
2. Open the audit log.
3. Observe the result and verify the full behavior: the generation is recorded with the actor and timestamp.
**Expected Result:** The generation is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-008 — Issuance count
**Type:** Positive
**Covers:** 4.2 → Issuance count: the number of certificates issued
**Preconditions:** A Super Admin account is active; certificates have been issued.
**Steps:**
1. As a Super Admin, open the certificate issuance tracking.
2. Observe the result and verify the full behavior: the issuance count is shown.
**Expected Result:** The count is shown — it is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-009 — Per-template breakdown
**Type:** Positive
**Covers:** 4.2 → Per-template breakdown: the issuance per certificate template
**Preconditions:** A Super Admin account is active; issuance exists for multiple templates.
**Steps:**
1. As a Super Admin, view the per-template breakdown.
2. Observe the result and verify the full behavior: the issuance is separated by template.
**Expected Result:** The breakdown is shown — the templates are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-010 — Per-institute breakdown
**Type:** Positive
**Covers:** 4.2 → Per-institute breakdown: the issuance per institute
**Preconditions:** A Super Admin account is active; issuance exists for multiple institutes.
**Steps:**
1. As a Super Admin, view the per-institute breakdown.
2. Observe the result and verify the full behavior: the issuance is separated by institute.
**Expected Result:** The breakdown is shown — the institutes are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-011 — Issuance trend
**Type:** Positive
**Covers:** 4.2 → Issuance trend: the issuance over time
**Preconditions:** A Super Admin account is active; issuance exists over time.
**Steps:**
1. As a Super Admin, view the issuance trend.
2. Observe the result and verify the full behavior: the trend over time is shown.
**Expected Result:** The trend is shown — it reflects the issuance over time, delivered exactly as documented.
**Priority:** Low

### TC-SA-WL-04-012 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.2 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-013 — Rule: a report reflects the selected date range
**Type:** Positive
**Covers:** 4.2 → Rule: a report reflects the selected date range
**Preconditions:** A Super Admin account is active; data exists across multiple ranges.
**Steps:**
1. As a Super Admin, select a date range and view the report.
2. Observe the result and verify the full behavior: only data in the range is shown.
**Expected Result:** The range is applied — the data is filtered, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-014 — Rule: report generation is audit-logged
**Type:** Positive
**Covers:** 4.2 → Audit logging of certificate issuance tracking
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, generate the report.
2. Open the audit log.
3. Observe the result and verify the full behavior: the generation is recorded with the actor and timestamp.
**Expected Result:** The generation is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-015 — Send count
**Type:** Positive
**Covers:** 4.3 → Send count: the number of emails sent per template
**Preconditions:** A Super Admin account is active; emails have been sent.
**Steps:**
1. As a Super Admin, open the email template performance analytics.
2. Observe the result and verify the full behavior: the send count per template is shown.
**Expected Result:** The send count is shown — it is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-016 — Open rate
**Type:** Positive
**Covers:** 4.3 → Open rate: the open rate per template
**Preconditions:** A Super Admin account is active; open data exists.
**Steps:**
1. As a Super Admin, review the open rate.
2. Observe the result and verify the full behavior: the rate is the opens over the sends.
**Expected Result:** The open rate is shown — it is computed correctly, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-017 — Click rate
**Type:** Positive
**Covers:** 4.3 → Click rate: the click rate per template
**Preconditions:** A Super Admin account is active; click data exists.
**Steps:**
1. As a Super Admin, review the click rate.
2. Observe the result and verify the full behavior: the rate is the clicks over the opens.
**Expected Result:** The click rate is shown — it is computed correctly, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-018 — Per-institute breakdown
**Type:** Positive
**Covers:** 4.3 → Per-institute breakdown: the performance per institute
**Preconditions:** A Super Admin account is active; performance exists for multiple institutes.
**Steps:**
1. As a Super Admin, view the per-institute breakdown.
2. Observe the result and verify the full behavior: the performance is separated by institute.
**Expected Result:** The breakdown is shown — the institutes are separated, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-019 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.3 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-020 — Rule: a report reflects the selected date range
**Type:** Positive
**Covers:** 4.3 → Rule: a report reflects the selected date range
**Preconditions:** A Super Admin account is active; data exists across multiple ranges.
**Steps:**
1. As a Super Admin, select a date range and view the report.
2. Observe the result and verify the full behavior: only data in the range is shown.
**Expected Result:** The range is applied — the data is filtered, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-021 — Rule: report generation is audit-logged
**Type:** Positive
**Covers:** 4.3 → Audit logging of email template performance
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, generate the report.
2. Open the audit log.
3. Observe the result and verify the full behavior: the generation is recorded with the actor and timestamp.
**Expected Result:** The generation is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-022 — Adoption count
**Type:** Positive
**Covers:** 4.4 → Adoption count: the number of institutes using white-label
**Preconditions:** A Super Admin account is active; institutes use white-label.
**Steps:**
1. As a Super Admin, open the white-label adoption report.
2. Observe the result and verify the full behavior: the adoption count is shown.
**Expected Result:** The count is shown — it is accurate, delivered exactly as documented.
**Priority:** High

### TC-SA-WL-04-023 — Feature adoption
**Type:** Positive
**Covers:** 4.4 → Feature adoption: the white-label features used per institute
**Preconditions:** A Super Admin account is active; institutes use various features.
**Steps:**
1. As a Super Admin, view the feature adoption.
2. Observe the result and verify the full behavior: the features used per institute are listed.
**Expected Result:** The adoption is shown — the features are listed, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-024 — Adoption trend
**Type:** Positive
**Covers:** 4.4 → Adoption trend: the adoption over time
**Preconditions:** A Super Admin account is active; adoption exists over time.
**Steps:**
1. As a Super Admin, view the adoption trend.
2. Observe the result and verify the full behavior: the trend over time is shown.
**Expected Result:** The trend is shown — it reflects the adoption over time, delivered exactly as documented.
**Priority:** Low

### TC-SA-WL-04-025 — Non-adoption list
**Type:** Positive
**Covers:** 4.4 → Non-adoption list: the institutes not using white-label
**Preconditions:** A Super Admin account is active; some institutes do not use white-label.
**Steps:**
1. As a Super Admin, view the non-adoption list.
2. Observe the result and verify the full behavior: the non-adopting institutes are listed.
**Expected Result:** The list is shown — the institutes are listed, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-026 — Rule: a report is exportable in CSV
**Type:** Positive
**Covers:** 4.4 → Rule: a report is exportable in CSV
**Preconditions:** A Super Admin account is active; the report has data.
**Steps:**
1. As a Super Admin, export the report to CSV.
2. Open the file.
3. Observe the result and verify the full behavior: the data is present and correct.
**Expected Result:** The export works — the CSV contains the data, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-027 — Rule: a report reflects the selected date range
**Type:** Positive
**Covers:** 4.4 → Rule: a report reflects the selected date range
**Preconditions:** A Super Admin account is active; data exists across multiple ranges.
**Steps:**
1. As a Super Admin, select a date range and view the report.
2. Observe the result and verify the full behavior: only data in the range is shown.
**Expected Result:** The range is applied — the data is filtered, delivered exactly as documented.
**Priority:** Medium

### TC-SA-WL-04-028 — Rule: report generation is audit-logged
**Type:** Positive
**Covers:** 4.4 → Audit logging of white-label adoption report
**Preconditions:** A Super Admin account is active; the audit log is accessible.
**Steps:**
1. As a Super Admin, generate the report.
2. Open the audit log.
3. Observe the result and verify the full behavior: the generation is recorded with the actor and timestamp.
**Expected Result:** The generation is audit-logged — the actor and timestamp are recorded, delivered exactly as documented.
**Priority:** High
