Skip to content

Verification Matrix — Worksite Enable (RPO) ​

Implements: ../requirements/req-prot-003-worksite-authorise.md

Requirement ↔ Scenario Index ​

Requirement RefRequirement (short)Scenario IDs
EDR-1Prompt confirmation on EnableTC-PROT-AUTH-001
EDR-2Confirm sets Worksite EnabledTC-PROT-AUTH-002
EDR-3Success message displayedTC-PROT-AUTH-003
SDR-1RPO sees Enable on Inactive Worksite in Active PWATC-PROT-AUTH-005
SDR-2Enabled badge displayedTC-PROT-AUTH-006
UBI-1Online connectivity requiredTC-PROT-AUTH-008
UNW-1Prevent enable if already EnabledTC-PROT-AUTH-009
UNW-2Prevent enable if PWA not ActiveTC-PROT-AUTH-010
UNW-3Prevent enable for non‑RPOTC-PROT-AUTH-011

Scenarios (at a glance) ​

IDTitleType
TC-PROT-AUTH-001 (3.2.1.1)Enable prompts confirmationPositive
TC-PROT-AUTH-002 (3.2.1.1)Confirm sets Worksite to EnabledPositive
TC-PROT-AUTH-003 (3.2.1.1)Success message shownPositive
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 visiblePositive
TC-PROT-AUTH-008 (3.2.1.2, 3.2.3)Online requiredDefensive
TC-PROT-AUTH-009Already Enabled blocks enableDefensive
TC-PROT-AUTH-010 (3.2.1.2)PWA not Active blocks enableDefensive
TC-PROT-AUTH-011 (3.2.2.1)Non‑RPO cannot enableNegative

Scenario details ​

TC-PROT-AUTH-001: Enable prompts confirmation
  • Arrange
    • The user is logged in with the RPO role.
    • The PWA's status is Active.
    • The target Worksite's status is Inactive.
  • Act
    • The user initiates the Enable Worksite action.
  • Assert
    • The system displays a confirmation dialog.

TC-PROT-AUTH-002: Confirm sets Worksite to Enabled
  • Arrange
    • The user is logged in with the RPO role.
    • The PWA's status is Active and the Worksite is Inactive.
  • Act
    • The user confirms the action.
  • Assert
    • The Worksite's status changes to Enabled.

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

TC-PROT-AUTH-006: Enabled badge 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.

TC-PROT-AUTH-008: Online required
  • Arrange
    • Network connectivity is unavailable.
    • The user is logged in with the RPO role; PWA is Active; Worksite is Inactive.
  • 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.
  • 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 is Inactive.
  • 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 RPO role.
    • The PWA is Active; the Worksite is Inactive.
  • Act
    • The user views actions for the Worksite.
  • Assert
    • The Enable Worksite action is hidden or disabled.

Internal use only