{
  "base_ui": "https://visaready-sit.winds-os.com",
  "out_dir": "/home/usr1/code2/spec-studio/qa/visaready/runs/20260711173249",
  "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.20260711173249@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.20260711173249@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.20260711173249@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": "Verified score"
        },
        {
          "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.20260711173249@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.20260711173249@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.20260711173249@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.20260711173249@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.20260711173249@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"
        }
      ]
    },
    {
      "id": "TC-U09",
      "title": "Workflow UI: complete all 7 guided steps and generate a Lite score",
      "srs_ref": "VR-2.2",
      "area": "ui",
      "kind": "ui",
      "priority": "P1",
      "steps": [
        {
          "goto": "/"
        },
        {
          "fill": {
            "placeholder": "you@example.com",
            "value": "qa.20260711173249@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": "Start New Application"
        },
        {
          "expect_text": "Step 1 of 7"
        },
        {
          "fill": {
            "placeholder": "Passport Number",
            "value": "U1732499"
          }
        },
        {
          "fill": {
            "placeholder": "Name (as in passport)",
            "value": "UI Journey Tester"
          }
        },
        {
          "fill": {
            "placeholder": "Place of Issue",
            "value": "Mumbai"
          }
        },
        {
          "fill": {
            "placeholder": "YYYY-MM-DD",
            "nth": 0,
            "value": "2020-01-15"
          }
        },
        {
          "fill": {
            "placeholder": "YYYY-MM-DD",
            "nth": 1,
            "value": "2031-01-14"
          }
        },
        {
          "tap": "Select Nationality"
        },
        {
          "tap": "India"
        },
        {
          "tap": "Save & Continue"
        },
        {
          "expect_text": "Step 2 of 7"
        },
        {
          "tap": "Select Destination Country"
        },
        {
          "tap": "France"
        },
        {
          "tap": "Done"
        },
        {
          "tap": "Select Visa Type"
        },
        {
          "tap": "Tourist / Visitor"
        },
        {
          "fill": {
            "placeholder": "YYYY-MM-DD",
            "nth": 0,
            "value": "2026-08-10"
          }
        },
        {
          "fill": {
            "placeholder": "YYYY-MM-DD",
            "nth": 1,
            "value": "2026-08-24"
          }
        },
        {
          "fill": {
            "placeholder": "Trip Duration (days)",
            "value": "14"
          }
        },
        {
          "tap": "Save & Next"
        },
        {
          "expect_text": "Step 3 of 7"
        },
        {
          "fill": {
            "placeholder": "First Name",
            "value": "UI"
          }
        },
        {
          "fill": {
            "placeholder": "YYYY-MM-DD",
            "nth": 0,
            "value": "1990-05-20"
          }
        },
        {
          "tap": "Select Gender"
        },
        {
          "tap": "Male"
        },
        {
          "tap": "Select Marital Status"
        },
        {
          "tap": "Married"
        },
        {
          "fill": {
            "placeholder": "Current City of Residence",
            "value": "Mumbai"
          }
        },
        {
          "fill": {
            "placeholder": "State",
            "value": "Maharashtra"
          }
        },
        {
          "fill": {
            "placeholder": "PIN / Postal Code",
            "value": "400001"
          }
        },
        {
          "fill": {
            "placeholder": "Email",
            "value": "qa.20260711173249@visaready.test"
          }
        },
        {
          "fill": {
            "placeholder": "Mobile",
            "value": "9876543299"
          }
        },
        {
          "tap": "Select Highest Qualification"
        },
        {
          "tap": "Postgraduate"
        },
        {
          "tap": "Select User Type"
        },
        {
          "tap": "Salaried"
        },
        {
          "tap": "Save & Next"
        },
        {
          "expect_text": "Step 4 of 7"
        },
        {
          "tap": "Save & Next"
        },
        {
          "expect_text": "Step 5 of 7"
        },
        {
          "tap": "Save & Next"
        },
        {
          "expect_text": "Step 6 of 7"
        },
        {
          "toggle": 3
        },
        {
          "tap": "Save & Next"
        },
        {
          "expect_text": "Step 7 of 7"
        },
        {
          "screenshot": "journey-step7"
        },
        {
          "tap": "Generate VisaScore"
        },
        {
          "wait": 3500
        },
        {
          "goto": "/"
        },
        {
          "expect_text": "Indicative (Lite) result"
        },
        {
          "screenshot": "journey-done"
        }
      ]
    }
  ]
}