# 3. Third-Party Integrations — Test Cases

User Type: **Training Institute**
Source: *Mi Digital Academy - Education CRM Features Document*
Spec: third_party_integrations.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 | Integration directory | TC-TI-7-03-001 |
| 3.1 | Available integrations list | TC-TI-7-03-002 |
| 3.1 | Integration descriptions | TC-TI-7-03-003 |
| 3.1 | Data synced per integration | TC-TI-7-03-004 |
| 3.1 | Plan availability shown | TC-TI-7-03-005 |
| 3.1 | Search the directory | TC-TI-7-03-006 |
| 3.1 | Directory available on web and mobile | TC-TI-7-03-007 |
| 3.1 | Directory event logging (viewed) | TC-TI-7-03-008 |
| 3.1 | Audit logging of the integration directory | TC-TI-7-03-009 |
| 3.1 | Rule: The plan availability is shown per integration. | TC-TI-7-03-001 |
| 3.1 | Rule: The directory is searchable. | TC-TI-7-03-002 |
| 3.1 | Rule: Directory events (viewed) are logged with the account and the timestamp. | TC-TI-7-03-003 |
| 3.1 | Rule: The integration directory is audit-logged with the account and the timestamp. | TC-TI-7-03-004 |
| 3.2 | Integration setup flow | TC-TI-7-03-010 |
| 3.2 | Select an integration | TC-TI-7-03-011 |
| 3.2 | Provide the required credentials | TC-TI-7-03-012 |
| 3.2 | Connection completed | TC-TI-7-03-013 |
| 3.2 | Connection status shown | TC-TI-7-03-014 |
| 3.2 | Disconnect an integration | TC-TI-7-03-015 |
| 3.2 | Setup available on web and mobile | TC-TI-7-03-016 |
| 3.2 | Setup event logging (connected, disconnected) | TC-TI-7-03-017 |
| 3.2 | Audit logging of the integration setup and connection | TC-TI-7-03-018 |
| 3.2 | Rule: The credentials are validated on connection. | TC-TI-7-03-010 |
| 3.2 | Rule: A disconnected integration stops syncing. | TC-TI-7-03-011 |
| 3.2 | Rule: Setup events (connected, disconnected) are logged with the account and the timestamp. | TC-TI-7-03-012 |
| 3.2 | Rule: The integration setup and connection is audit-logged with the account and the timestamp. | TC-TI-7-03-013 |
| 3.3 | Integration sync status | TC-TI-7-03-019 |
| 3.3 | Last sync time shown | TC-TI-7-03-020 |
| 3.3 | Records synced count | TC-TI-7-03-021 |
| 3.3 | Sync errors shown | TC-TI-7-03-022 |
| 3.3 | Sync frequency shown | TC-TI-7-03-023 |
| 3.3 | Trigger a manual sync | TC-TI-7-03-024 |
| 3.3 | Sync log viewable | TC-TI-7-03-025 |
| 3.3 | Monitoring available on web and mobile | TC-TI-7-03-026 |
| 3.3 | Monitoring event logging (synced, manual sync) | TC-TI-7-03-027 |
| 3.3 | Audit logging of the integration sync monitoring | TC-TI-7-03-028 |
| 3.3 | Rule: A sync error is shown with the reason. | TC-TI-7-03-019 |
| 3.3 | Rule: A manual sync runs immediately. | TC-TI-7-03-020 |
| 3.3 | Rule: Monitoring events (synced, manual sync) are logged with the account and the timestamp. | TC-TI-7-03-021 |
| 3.3 | Rule: The integration sync monitoring is audit-logged with the account and the timestamp. | TC-TI-7-03-022 |

## 3.1 Integration Directory

### TC-TI-7-03-001 — Integration directory
**Type:** Positive
**Covers:** 3.1 → Integration directory; Rule: The plan availability is shown per integration.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Integration directory.
2. Observe the result and verify the full behavior: Integration directory.
**Expected Result:** Integration directory — delivered exactly as documented.
**Priority:** Critical

### TC-TI-7-03-002 — Available integrations list
**Type:** Positive
**Covers:** 3.1 → Available integrations list; Rule: The directory is searchable.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Available integrations list.
2. Observe the result and verify the full behavior: Available integrations list.
**Expected Result:** Available integrations list — delivered exactly as documented.
**Priority:** High

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

### TC-TI-7-03-004 — Data synced per integration
**Type:** Positive
**Covers:** 3.1 → Data synced per integration; Rule: The integration directory is audit-logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Data synced per integration.
2. Observe the result and verify the full behavior: Data synced per integration.
**Expected Result:** Data synced per integration — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-005 — Plan availability shown
**Type:** Positive
**Covers:** 3.1 → Plan availability shown
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Plan availability shown.
2. Observe the result and verify the full behavior: Plan availability shown.
**Expected Result:** Plan availability shown — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-006 — Search the directory
**Type:** Positive
**Covers:** 3.1 → Search the directory
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Search the directory.
2. Observe the result and verify the full behavior: Search the directory.
**Expected Result:** Search the directory — delivered exactly as documented.
**Priority:** High

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

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

### TC-TI-7-03-009 — Audit logging of the integration directory
**Type:** Positive
**Covers:** 3.1 → Audit logging of the integration directory
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, perform the integration directory action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The integration directory action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 3.2 Integration Setup & Connection

### TC-TI-7-03-010 — Integration setup flow
**Type:** Positive
**Covers:** 3.2 → Integration setup flow; Rule: The credentials are validated on connection.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Integration setup flow.
2. Observe the result and verify the full behavior: Integration setup flow.
**Expected Result:** Integration setup flow — delivered exactly as documented.
**Priority:** Critical

### TC-TI-7-03-011 — Select an integration
**Type:** Positive
**Covers:** 3.2 → Select an integration; Rule: A disconnected integration stops syncing.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Select an integration.
2. Observe the result and verify the full behavior: Select an integration.
**Expected Result:** Select an integration — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-012 — Provide the required credentials
**Type:** Edge
**Covers:** 3.2 → Provide the required credentials; Rule: Setup events (connected, disconnected) are logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Provide the required credentials.
2. Observe the result and verify the full behavior: Provide the required credentials.
**Expected Result:** Provide the required credentials — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-013 — Connection completed
**Type:** Positive
**Covers:** 3.2 → Connection completed; Rule: The integration setup and connection is audit-logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Connection completed.
2. Observe the result and verify the full behavior: Connection completed.
**Expected Result:** Connection completed — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-014 — Connection status shown
**Type:** Positive
**Covers:** 3.2 → Connection status shown
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Connection status shown.
2. Observe the result and verify the full behavior: Connection status shown.
**Expected Result:** Connection status shown — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-015 — Disconnect an integration
**Type:** Positive
**Covers:** 3.2 → Disconnect an integration
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Disconnect an integration.
2. Observe the result and verify the full behavior: Disconnect an integration.
**Expected Result:** Disconnect an integration — delivered exactly as documented.
**Priority:** High

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

### TC-TI-7-03-017 — Setup event logging (connected, disconnected)
**Type:** Positive
**Covers:** 3.2 → Setup event logging (connected, disconnected)
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Setup event logging (connected, disconnected).
2. Observe the result and verify the full behavior: Setup event logging (connected, disconnected).
**Expected Result:** Setup event logging (connected, disconnected) — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-018 — Audit logging of the integration setup and connection
**Type:** Positive
**Covers:** 3.2 → Audit logging of the integration setup and connection
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, perform the integration setup and connection action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The integration setup and connection action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical


## 3.3 Integration Sync Monitoring

### TC-TI-7-03-019 — Integration sync status
**Type:** Positive
**Covers:** 3.3 → Integration sync status; Rule: A sync error is shown with the reason.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Integration sync status.
2. Observe the result and verify the full behavior: Integration sync status.
**Expected Result:** Integration sync status — delivered exactly as documented.
**Priority:** Critical

### TC-TI-7-03-020 — Last sync time shown
**Type:** Positive
**Covers:** 3.3 → Last sync time shown; Rule: A manual sync runs immediately.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Last sync time shown.
2. Observe the result and verify the full behavior: Last sync time shown.
**Expected Result:** Last sync time shown — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-021 — Records synced count
**Type:** Positive
**Covers:** 3.3 → Records synced count; Rule: Monitoring events (synced, manual sync) are logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Records synced count.
2. Observe the result and verify the full behavior: Records synced count.
**Expected Result:** Records synced count — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-022 — Sync errors shown
**Type:** Positive
**Covers:** 3.3 → Sync errors shown; Rule: The integration sync monitoring is audit-logged with the account and the timestamp.
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Sync errors shown.
2. Observe the result and verify the full behavior: Sync errors shown.
**Expected Result:** Sync errors shown — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-023 — Sync frequency shown
**Type:** Positive
**Covers:** 3.3 → Sync frequency shown
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Sync frequency shown.
2. Observe the result and verify the full behavior: Sync frequency shown.
**Expected Result:** Sync frequency shown — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-024 — Trigger a manual sync
**Type:** Positive
**Covers:** 3.3 → Trigger a manual sync
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Trigger a manual sync.
2. Observe the result and verify the full behavior: Trigger a manual sync.
**Expected Result:** Trigger a manual sync — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-025 — Sync log viewable
**Type:** Positive
**Covers:** 3.3 → Sync log viewable
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Sync log viewable.
2. Observe the result and verify the full behavior: Sync log viewable.
**Expected Result:** Sync log viewable — delivered exactly as documented.
**Priority:** High

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

### TC-TI-7-03-027 — Monitoring event logging (synced, manual sync)
**Type:** Positive
**Covers:** 3.3 → Monitoring event logging (synced, manual sync)
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, set up the precondition and perform: Monitoring event logging (synced, manual sync).
2. Observe the result and verify the full behavior: Monitoring event logging (synced, manual sync).
**Expected Result:** Monitoring event logging (synced, manual sync) — delivered exactly as documented.
**Priority:** High

### TC-TI-7-03-028 — Audit logging of the integration sync monitoring
**Type:** Positive
**Covers:** 3.3 → Audit logging of the integration sync monitoring
**Preconditions:** A Training Institute account is active and the Training Institute is in the state required for this behavior.
**Steps:**
1. As a Training Institute, perform the integration sync monitoring action.
2. Open the audit log and verify the entry for the action.
**Expected Result:** The integration sync monitoring action is recorded in the audit log with the account and the timestamp.
**Priority:** Critical
