Verification Matrix — Worksite Enable (Multi‑site)
Implements: ../requirements/req-prot-004-worksite-enable.md
Requirement ↔ Scenario Index
| Requirement Ref | Requirement (short) | Scenario IDs |
|---|---|---|
| EDR-1 | Prompt confirmation on Enable | TC-PROT-EN-001 |
| EDR-2 | Confirm sets Worksite Enabled | TC-PROT-EN-002 |
| EDR-3 | Success message displayed | TC-PROT-EN-003 |
| EDR-4 | Audit records SP id + timestamp | TC-PROT-EN-004 |
| SDR-1 | SP sees Enable on Authorised Worksite | TC-PROT-EN-005 |
| SDR-2 | Enabled badge and Protector details visible | TC-PROT-EN-006 |
| SDR-3 | Workers may lock on when Enabled | TC-PROT-EN-007 |
| UBI-1 | Online connectivity required | TC-PROT-EN-008 |
| UNW-1 | Prevent Enable if not Authorised | TC-PROT-EN-009 |
| UNW-2 | Prevent Enable for non‑SP | TC-PROT-EN-010 |
Scenarios (at a glance)
| ID | Title | Type |
|---|---|---|
| TC-PROT-EN-001 (3.3.1.1) | Enable prompts confirmation | Positive |
| TC-PROT-EN-002 (3.3.1.1) | Confirm sets Worksite to Enabled | Positive |
| TC-PROT-EN-003 (3.3.1.1) | Success message shown | Positive |
| TC-PROT-EN-004 (3.3.1.1) | Audit payload contains actor + timestamp | Positive |
| TC-PROT-EN-005 (3.3.1.1) | SP sees Enable action (Authorised Worksite) | Positive |
| TC-PROT-EN-006 (3.3.1.1) | Enabled badge + Protector details visible | Positive |
| TC-PROT-EN-007 | Workers can lock on when Enabled | Positive |
| TC-PROT-EN-008 (3.3.1.2) | Online required | Defensive |
| TC-PROT-EN-009 | Not Authorised prevents Enable | Defensive |
| TC-PROT-EN-010 (3.3.2.1) | Non‑SP cannot enable | Negative |
Scenario details
TC-PROT-EN-001: Enable prompts confirmation
- Arrange
- The user is logged in with the
SProle. - The Worksite's status is
Authorised.
- The user is logged in with the
- Act
- The user initiates the
Enable Worksiteaction.
- The user initiates the
- Assert
- The system displays a confirmation dialog.
TC-PROT-EN-002: Confirm sets Worksite to Enabled
- Arrange
- The user is logged in with the
SProle. - The Worksite's status is
Authorised.
- The user is logged in with the
- Act
- The user confirms enabling.
- Assert
- The Worksite's status changes to
Enabled.
- The Worksite's status changes to
TC-PROT-EN-003: Success message shown
- Arrange
- The user is logged in with the
SProle. - The Worksite's status is
Authorised.
- The user is logged in with the
- Act
- The user confirms enabling.
- Assert
- The system displays a success toast/banner.
TC-PROT-EN-004: Audit payload contains actor + timestamp
- Arrange
- The user is logged in with the
SProle. - The Worksite's status is
Authorised.
- The user is logged in with the
- Act
- The user enables the Worksite and confirms.
- Assert
- An audit event is recorded with the SP's identifier and a timestamp.
TC-PROT-EN-005: SP sees Enable action (Authorised Worksite)
- Arrange
- The user is logged in with the
SProle. - The Worksite's status is
Authorised.
- The user is logged in with the
- Act
- The user views available actions for the Worksite.
- Assert
- The
Enable Worksiteaction is visible.
- The
TC-PROT-EN-006: Enabled badge + Protector details visible
- Arrange
- The Worksite has been moved to
Enabled.
- The Worksite has been moved to
- Act
- The user views the Worksite card/details.
- Assert
- The Worksite displays a status badge labelled
Enabled. - The Protector's name and phone number are visible.
- The Worksite displays a status badge labelled
TC-PROT-EN-007: Workers can lock on when Enabled
- Arrange
- The Worksite's status is
Enabled.
- The Worksite's status is
- Act
- A worker attempts to lock on to the Worksite.
- Assert
- The lock‑on action is available and succeeds.
TC-PROT-EN-008: Online required
- Arrange
- Network connectivity is unavailable.
- The user is logged in with the
SProle; Worksite isAuthorised.
- Act
- The user attempts to enable the Worksite.
- Assert
- The system prevents enabling and indicates online connectivity is required.
TC-PROT-EN-009: Not Authorised prevents Enable
- Arrange
- The Worksite's status is
Inactive.
- The Worksite's status is
- Act
- The user attempts to enable the Worksite.
- Assert
- The system prevents enabling.
TC-PROT-EN-010: Non‑SP cannot enable
- Arrange
- The user is authenticated without the
SProle; Worksite isAuthorised.
- The user is authenticated without the
- Act
- The user views actions for the Worksite.
- Assert
- The
Enable Worksiteaction is hidden or disabled.
- The