{
 "responses": {
  "/auth/login": {"body":{"ok":true,"csrf_token":"t1","user":{"role":"OWNER"}}},
  "/stock/count-sheet": {"body":{"lines":[
    {"batch_id":"01B1","batch_no":"PC5566","expiry_date":"2028-09-30",
     "item_name":"Paracetamol 650mg","schedule_code":"NONE","units_per_pack":15,"system_qty":180},
    {"batch_id":"01B2","batch_no":"AZ1122","expiry_date":"2027-06-30",
     "item_name":"Alprazolam 0.5mg","schedule_code":"H","units_per_pack":10,"system_qty":40}]}},
  "/stock/adjust": {"body":{"adjusted":1,
    "lines":[{"batch_no":"PC5566","item":"Paracetamol 650mg","was":180,"now":165,"delta":-15}],
    "schedule_writeoffs":[],"note":null}}
 },
 "steps": [
  {"name":"sign in","fill":{"lpw":"x"},"click":"btnLogin","wait":400,
   "expect":{"rows":"Paracetamol 650mg"}},
  {"name":"THE SYSTEM FIGURE IS SHOWN, unlike the cash drawer","expect":{"rows":"180"}},
  {"name":"a Schedule H line is flagged","expect":{"rows":"Rx"}},
  {"name":"counting short shows the difference","fill":{"c0":"165"},"wait":200,
   "expect":{"nDiff":"1"}},
  {"name":"AND POSTING IS ENABLED ONLY ONCE SOMETHING IS COUNTED",
   "click":"btnPost","wait":300,"expect":{"msg":"correction"}}
 ]
}
