{
  "base_ui": "https://visaready-sit.winds-os.com",
  "out_dir": "/home/usr1/code2/spec-studio/qa/visaready/runs/20260711161923",
  "cases": [
    {
      "id": "TC-U01",
      "title": "Email OTP login lands on the personalised dashboard",
      "srs_ref": "VR-4.2",
      "area": "ui",
      "kind": "ui",
      "priority": "P1",
      "setup": false,
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "screenshot": "home"
        }
      ]
    },
    {
      "id": "TC-U02",
      "title": "Wrong OTP shows an inline error",
      "srs_ref": "VR-4.2",
      "area": "ui",
      "kind": "ui",
      "priority": "P1",
      "setup": false,
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.ui2.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "9999"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Incorrect code"
        },
        {
          "screenshot": "wrong-otp"
        }
      ]
    },
    {
      "id": "TC-U03",
      "title": "Dashboard shows score card, journeys, recent apps and explore links",
      "srs_ref": "VR-2.2",
      "area": "ui",
      "kind": "ui",
      "priority": "P1",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "expect_text": "Visa Readiness"
        },
        {
          "expect_text": "Get started"
        },
        {
          "expect_text": "Visa Application (6 Steps + Score)"
        },
        {
          "expect_text": "Start New Application"
        },
        {
          "expect_text": "Explore"
        },
        {
          "expect_text": "Indicative (Lite) result"
        },
        {
          "screenshot": "dashboard"
        }
      ]
    },
    {
      "id": "TC-U04",
      "title": "Profile tab opens the applicant profile form",
      "srs_ref": "VR-4.6",
      "area": "ui",
      "kind": "ui",
      "priority": "P2",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "tap": "Profile"
        },
        {
          "expect_text": "Passport Number"
        },
        {
          "screenshot": "profile"
        }
      ]
    },
    {
      "id": "TC-U05",
      "title": "Customer does not see admin/agent-only navigation",
      "area": "ui",
      "kind": "ui",
      "priority": "P1",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "expect_not_text": "Leads"
        },
        {
          "expect_not_text": "Administration"
        }
      ]
    },
    {
      "id": "TC-U06",
      "title": "Guided journey opens at Step 1 with the passport form",
      "srs_ref": "VR-2.2",
      "area": "ui",
      "kind": "ui",
      "priority": "P1",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "tap": "Visa Application (6 Steps + Score)"
        },
        {
          "expect_text": "Step 1 of 7"
        },
        {
          "fill": {
            "placeholder": "Passport Number",
            "value": "M7654321"
          }
        },
        {
          "screenshot": "wizard-step1"
        }
      ]
    },
    {
      "id": "TC-U07",
      "title": "Explore links include the Terms & Consent page",
      "srs_ref": "VR-4.4",
      "area": "ui",
      "kind": "ui",
      "priority": "P3",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "expect_text": "Terms of Use, Consent & Disclaimer"
        }
      ]
    },
    {
      "id": "TC-U08",
      "title": "Library tab renders without errors",
      "area": "ui",
      "kind": "ui",
      "priority": "P3",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711161923@visaready.test"
          }
        },
        {
          "tap": "Send code"
        },
        {
          "expect_text": "Enter the 4-digit code"
        },
        {
          "fill": {
            "nth": 0,
            "value": "1234"
          }
        },
        {
          "tap": "Verify & sign in"
        },
        {
          "expect_text": "Hi there"
        },
        {
          "tap": "Library"
        },
        {
          "wait": 1500
        },
        {
          "screenshot": "library"
        }
      ]
    }
  ]
}