Verification Matrix — Worksite Enable (RPO)
Implements: ../requirements/req-prot-003-worksite-authorise.md
Requirement ↔ Scenario Index
| Requirement Ref | Requirement (short) | Scenario IDs |
|---|---|---|
| EDR-1 | Prompt confirmation on Enable | TC-PROT-AUTH-001 |
| EDR-2 | Confirm sets Worksite Enabled | TC-PROT-AUTH-002 |
| EDR-3 | Success message displayed | TC-PROT-AUTH-003 |
| SDR-1 | RPO sees Enable on Inactive Worksite in Active PWA | TC-PROT-AUTH-005 |
| SDR-2 | Enabled badge displayed | TC-PROT-AUTH-006 |
| UBI-1 | Online connectivity required | TC-PROT-AUTH-008 |
| UNW-1 | Prevent enable if already Enabled | TC-PROT-AUTH-009 |
| UNW-2 | Prevent enable if PWA not Active | TC-PROT-AUTH-010 |
| UNW-3 | Prevent enable for non‑RPO | TC-PROT-AUTH-011 |
Scenarios (at a glance)
| ID | Title | Type |
|---|---|---|
| TC-PROT-AUTH-001 (3.2.1.1) | Enable prompts confirmation | Positive |
| TC-PROT-AUTH-002 (3.2.1.1) | Confirm sets Worksite to Enabled | Positive |
| TC-PROT-AUTH-003 (3.2.1.1) | Success message shown | Positive |
| TC-PROT-AUTH-005 (3.2.1.1) | RPO sees Enable action (Active PWA, Inactive Worksite) | Positive |
| TC-PROT-AUTH-006 (3.2.1.1) | Enabled badge visible | Positive |
| TC-PROT-AUTH-008 (3.2.1.2, 3.2.3) | Online required | Defensive |
| TC-PROT-AUTH-009 | Already Enabled blocks enable | Defensive |
| TC-PROT-AUTH-010 (3.2.1.2) | PWA not Active blocks enable | Defensive |
| TC-PROT-AUTH-011 (3.2.2.1) | Non‑RPO cannot enable | Negative |
Scenario details
TC-PROT-AUTH-001: Enable prompts confirmation
- Arrange
- The user is logged in with the
RPOrole. - The PWA's status is
Active. - The target Worksite's status is
Inactive.
- 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-AUTH-002: Confirm sets Worksite to Enabled
- Arrange
- The user is logged in with the
RPOrole. - The PWA's status is
Activeand the Worksite isInactive.
- The user is logged in with the
- Act
- The user confirms the action.
- Assert
- The Worksite's status changes to
Enabled.
- The Worksite's status changes to
TC-PROT-AUTH-003: Success message shown
- Arrange
- The user is logged in with the
RPOrole. - The PWA's status is
Activeand the Worksite isInactive.
- The user is logged in with the
- Act
- The user confirms the action.
- Assert
- The system displays a success toast/banner.
TC-PROT-AUTH-005: RPO sees Enable action (Active PWA, Inactive Worksite)
- Arrange
- The user is logged in with the
RPOrole. - The PWA's status is
Activeand the Worksite isInactive.
- 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-AUTH-006: Enabled badge 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 Worksite displays a status badge labelled
TC-PROT-AUTH-008: Online required
- Arrange
- Network connectivity is unavailable.
- The user is logged in with the
RPOrole; PWA isActive; Worksite isInactive.
- Act
- The user attempts to enable the Worksite.
- Assert
- The system prevents enabling by disabling the action button.
TC-PROT-AUTH-009: Already Enabled blocks enable
- Arrange
- The Worksite is
Enabled.
- The Worksite is
- Act
- The user attempts to re‑enable the Worksite.
- Assert
- The system prevents the action.
TC-PROT-AUTH-010: PWA not Active blocks enable
- Arrange
- The PWA is
Inactive; the Worksite isInactive.
- The PWA is
- Act
- The user attempts to enable the Worksite.
- Assert
- The system prevents the action.
TC-PROT-AUTH-011: Non‑RPO cannot enable
- Arrange
- The user (e.g. Protector, Admin) is authenticated without the
RPOrole. - The PWA is
Active; the Worksite isInactive.
- The user (e.g. Protector, Admin) is authenticated without the
- Act
- The user views actions for the Worksite.
- Assert
- The
Enable Worksiteaction is hidden or disabled.
- The