[
  {
    "actions": [
      {
        "action": "navigate",
        "type": "navigate",
        "url": "{base_url}/resource-manager?tab=timesheets"
      },
      {
        "action": "wait_for",
        "selector": "[data-testid=\"timesheets-control-select\"]",
        "timeout_ms": 30000,
        "type": "wait_for_selector"
      },
      {
        "action": "click",
        "selector": "[data-testid=\"timesheets-control-select\"]",
        "type": "click"
      },
      {
        "action": "click",
        "selector": "[data-testid=\"timesheets-user-id-option\"]:has-text(\"Tom Croft\")",
        "type": "click"
      },
      {
        "action": "wait_for",
        "selector": "h2:has-text(\"My Weekly Timesheet\"), h2:has-text(\"Timesheet for Tom Croft\")",
        "timeout_ms": 20000,
        "type": "wait_for_selector"
      },
      {
        "action": "click",
        "selector": "[data-testid=\"timesheets-previous-button\"]",
        "type": "click"
      },
      {
        "action": "wait_for",
        "selector": "[data-testid=\"timesheets-previous-button\"]",
        "timeout_ms": 5000,
        "type": "wait_for_selector"
      },
      {
        "action": "click",
        "selector": "[data-testid=\"timesheets-previous-button\"]",
        "type": "click"
      },
      {
        "action": "click",
        "selector": "[data-testid=\"timesheets-previous-button\"]",
        "type": "click"
      },
      {
        "action": "click",
        "selector": "[data-testid=\"timesheets-previous-button\"]",
        "type": "click"
      },
      {
        "action": "wait_for",
        "selector": "span:has-text(\"Approved\")",
        "timeout_ms": 30000,
        "type": "wait_for_selector"
      },
      {
        "action": "wait_for",
        "selector": "[data-testid=\"timesheets-quick-log-scheduled-task-scheduled-task-row\"]:has-text(\"J3174\")",
        "timeout_ms": 30000,
        "type": "wait_for_selector"
      },
      {
        "text": "Scheduled Tasks",
        "type": "assert_text"
      },
      {
        "text": "Resource Manager",
        "type": "assert_text"
      }
    ],
    "capture_each_step": true,
    "expected_result": "On an Approved (read-only) timesheet, the 'Scheduled Tasks' section still renders its logged task rows (green boxes) with the project_reference (e.g. J3174) visible \u2014 not hidden behind the canEdit gate. Tom Croft's week starting 2026-05-04 has logged entries for J3174 'BM Cover' that must show title and hours.",
    "human_journey": true,
    "name": "my-timesheets-scheduled-tasks-visible-on-approved",
    "path": "/resource-manager",
    "selectors": [],
    "source": "proof_contract",
    "start_path": "/resource-manager?tab=timesheets",
    "texts": [
      "Resource Manager"
    ]
  }
]