Skip to content

Verification Matrix — Worksite Enable (Multi‑site) ​

Implements: ../requirements/req-prot-004-worksite-enable.md

Requirement ↔ Scenario Index ​

Requirement RefRequirement (short)Scenario IDs
EDR-1Prompt confirmation on EnableTC-PROT-EN-001
EDR-2Confirm sets Worksite EnabledTC-PROT-EN-002
EDR-3Success message displayedTC-PROT-EN-003
EDR-4Audit records SP id + timestampTC-PROT-EN-004
SDR-1SP sees Enable on Authorised WorksiteTC-PROT-EN-005
SDR-2Enabled badge and Protector details visibleTC-PROT-EN-006
SDR-3Workers may lock on when EnabledTC-PROT-EN-007
UBI-1Online connectivity requiredTC-PROT-EN-008
UNW-1Prevent Enable if not AuthorisedTC-PROT-EN-009
UNW-2Prevent Enable for non‑SPTC-PROT-EN-010

Scenarios (at a glance) ​

IDTitleType
TC-PROT-EN-001 (3.3.1.1)Enable prompts confirmationPositive
TC-PROT-EN-002 (3.3.1.1)Confirm sets Worksite to EnabledPositive
TC-PROT-EN-003 (3.3.1.1)Success message shownPositive
TC-PROT-EN-004 (3.3.1.1)Audit payload contains actor + timestampPositive
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 visiblePositive
TC-PROT-EN-007Workers can lock on when EnabledPositive
TC-PROT-EN-008 (3.3.1.2)Online requiredDefensive
TC-PROT-EN-009Not Authorised prevents EnableDefensive
TC-PROT-EN-010 (3.3.2.1)Non‑SP cannot enableNegative

Scenario details ​

TC-PROT-EN-001: Enable prompts confirmation
  • Arrange
    • The user is logged in with the SP role.
    • The Worksite's status is Authorised.
  • Act
    • The user initiates the Enable Worksite action.
  • Assert
    • The system displays a confirmation dialog.

TC-PROT-EN-002: Confirm sets Worksite to Enabled
  • Arrange
    • The user is logged in with the SP role.
    • The Worksite's status is Authorised.
  • Act
    • The user confirms enabling.
  • Assert
    • The Worksite's status changes to Enabled.

TC-PROT-EN-003: Success message shown
  • Arrange
    • The user is logged in with the SP role.
    • The Worksite's status is Authorised.
  • 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 SP role.
    • The Worksite's status is Authorised.
  • 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 SP role.
    • The Worksite's status is Authorised.
  • Act
    • The user views available actions for the Worksite.
  • Assert
    • The Enable Worksite action is visible.

TC-PROT-EN-006: Enabled badge + Protector details visible
  • Arrange
    • The Worksite has been moved to Enabled.
  • 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.

TC-PROT-EN-007: Workers can lock on when Enabled
  • Arrange
    • The Worksite's status is Enabled.
  • 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 SP role; Worksite is Authorised.
  • 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.
  • 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 SP role; Worksite is Authorised.
  • Act
    • The user views actions for the Worksite.
  • Assert
    • The Enable Worksite action is hidden or disabled.

Internal use only