{
 "responses": {
  "/auth/login": {
   "body": {
    "csrf": "tok",
    "user": {
     "role": "OWNER"
    }
   }
  },
  "/auth/me": {
   "body": {
    "user": {
     "full_name": "Prakash",
     "role": "OWNER"
    },
    "store": {
     "name": "Shree Krishna Medical"
    },
    "counter": {
     "code": "C1"
    }
   }
  },
  "/purchases/parse": {
   "body": {
    "header": {
     "supplier_gstin": "27AABCT1234R1ZP",
     "doc_no_raw": "SI/2026/8841",
     "doc_date": "2026-08-30",
     "irn": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
    },
    "lines": [
     {
      "line_no": 1,
      "raw": "TELMA 40MG TAB 15S",
      "item_id": "01ITEM",
      "item_name": "Telmisartan 40mg Tablet",
      "confidence": 93,
      "status": "AUTO",
      "qty": 10,
      "purchase_rate": 160.0,
      "mrp": null,
      "batch_no": "B-9911",
      "expiry_date": "2029-06-30",
      "gst_pct": 12,
      "confirm": [
       "mrp"
      ]
     }
    ],
    "auto_matched": 1,
    "needs_attention": 1,
    "note": "MRP and batch are not carried by the e-invoice standard."
   }
  },
  "/purchases": {
   "body": {
    "purchase_id": "01P",
    "lines": 1,
    "net_amount": 1792.0,
    "aliases_learned": 1
   }
  }
 },
 "steps": [
  {
   "name": "sign in",
   "fill": {
    "lpw": "x"
   },
   "click": "btnLogin",
   "wait": 250,
   "expect": {
    "shopName": "Shree Krishna Medical"
   }
  },
  {
   "name": "paste an e-invoice",
   "fill": {
    "einv": "{\"ItemList\":[]}"
   },
   "wait": 60
  },
  {
   "name": "READ IT",
   "click": "btnParse",
   "wait": 450,
   "expectRows": {
    "sel": "tbody tr",
    "count": 1
   }
  },
  {
   "name": "MRP is flagged as needing a human",
   "wait": 100,
   "expect": {
    "vNeed": "1"
   }
  }
 ]
}