{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":26,"numPassedTests":300,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":26,"numTotalTests":300,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1792761684316,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":106,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 1: Customer searches product catalog and locates active medicine","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Step 1: Customer searches product catalog and locates active medicine"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":432,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 2: Customer uploads valid prescription document for Schedule H medicine","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Step 2: Customer uploads valid prescription document for Schedule H medicine"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":371,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 3: Licensed pharmacist inspects queue, reviews checklist, and APPROVES prescription","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Step 3: Licensed pharmacist inspects queue, reviews checklist, and APPROVES prescription"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":313,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 4: Customer places order, reserving stock via atomic FEFO allocation","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Step 4: Customer places order, reserving stock via atomic FEFO allocation"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":517,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 5: Order transitions from confirmed -> picking -> packed -> dispatched","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Step 5: Order transitions from confirmed -> picking -> packed -> dispatched"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":143,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 6: Completes the dispatched order and records delivery","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Step 6: Completes the dispatched order and records delivery"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","1. Full Functional End-to-End Customer & Pharmacy Order Journey"],"duration":85,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 1. Full Functional End-to-End Customer & Pharmacy Order Journey Step 7: Operational reporting matches transactional database records with 0 discrepancies","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Step 7: Operational reporting matches transactional database records with 0 discrepancies"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","2. Security Architecture, Cross-Branch Scoping & Isolation Tests"],"duration":40,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 2. Security Architecture, Cross-Branch Scoping & Isolation Tests Revoked Session Rejection: Token associated with revoked session is rejected -> 401","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Revoked Session Rejection: Token associated with revoked session is rejected -> 401"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","2. Security Architecture, Cross-Branch Scoping & Isolation Tests"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 2. Security Architecture, Cross-Branch Scoping & Isolation Tests Cross-Branch Data Restriction: Branch Manager A cannot access Branch B operational reports -> 403","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Cross-Branch Data Restriction: Branch Manager A cannot access Branch B operational reports -> 403"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","2. Security Architecture, Cross-Branch Scoping & Isolation Tests"],"duration":85,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 2. Security Architecture, Cross-Branch Scoping & Isolation Tests Customer-to-Customer Isolation: Customer B cannot retrieve Customer A prescriptions -> 404/403","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"Customer-to-Customer Isolation: Customer B cannot retrieve Customer A prescriptions -> 404/403"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","2. Security Architecture, Cross-Branch Scoping & Isolation Tests"],"duration":94,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 2. Security Architecture, Cross-Branch Scoping & Isolation Tests Malicious File Upload Restriction: Executable binary (Windows PE MZ) is rejected -> 400","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Malicious File Upload Restriction: Executable binary (Windows PE MZ) is rejected -> 400"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","2. Security Architecture, Cross-Branch Scoping & Isolation Tests"],"duration":39,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 2. Security Architecture, Cross-Branch Scoping & Isolation Tests SQL Injection & Input Hardening: Malicious SQL injection payloads in query parameters are sanitized","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"SQL Injection & Input Hardening: Malicious SQL injection payloads in query parameters are sanitized"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","2. Security Architecture, Cross-Branch Scoping & Isolation Tests"],"duration":56,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 2. Security Architecture, Cross-Branch Scoping & Isolation Tests Secrets Exposure Prevention: API responses must never leak passwordHash, secrets, or keys","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Secrets Exposure Prevention: API responses must never leak passwordHash, secrets, or keys"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","3. Concurrency, Atomicity & Idempotency Tests"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 3. Concurrency, Atomicity & Idempotency Tests Duplicate Order Submission: Re-submitting same idempotencyKey returns existing order idempotently","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"Duplicate Order Submission: Re-submitting same idempotencyKey returns existing order idempotently"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","3. Concurrency, Atomicity & Idempotency Tests"],"duration":111,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 3. Concurrency, Atomicity & Idempotency Tests Repeated Payment Webhooks: Re-sending identical webhook event is handled idempotently without duplicate credit","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"Repeated Payment Webhooks: Re-sending identical webhook event is handled idempotently without duplicate credit"},{"ancestorTitles":["Phase 12: Final QA and Production Release Verification Suite","3. Concurrency, Atomicity & Idempotency Tests"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Phase 12: Final QA and Production Release Verification Suite 3. Concurrency, Atomicity & Idempotency Tests Atomic ACID Transaction Rollback: Database error during order placement completely rolls back stock reservation","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"Atomic ACID Transaction Rollback: Database error during order placement completely rolls back stock reservation"}],"endTime":1792761716214,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase12_qa_release.test.js","startTime":1792761685654,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","1. Checkout, Stock Reservation & Idempotency"],"duration":673,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 1. Checkout, Stock Reservation & Idempotency should place an OTC order, reserve FEFO stock, and clear the cart","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should place an OTC order, reserve FEFO stock, and clear the cart"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","1. Checkout, Stock Reservation & Idempotency"],"duration":50,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 1. Checkout, Stock Reservation & Idempotency should return existing order when retrying with the same idempotency key","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should return existing order when retrying with the same idempotency key"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","1. Checkout, Stock Reservation & Idempotency"],"duration":157,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 1. Checkout, Stock Reservation & Idempotency allows OTC guest checkout without OTP and returns a public tracking token","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"allows OTC guest checkout without OTP and returns a public tracking token"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","1. Checkout, Stock Reservation & Idempotency"],"duration":141,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 1. Checkout, Stock Reservation & Idempotency allows guest checkout for prescription-required medicine but holds fulfillment for pharmacist verification","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"allows guest checkout for prescription-required medicine but holds fulfillment for pharmacist verification"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","1. Checkout, Stock Reservation & Idempotency"],"duration":151,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 1. Checkout, Stock Reservation & Idempotency should reject checkout when requested quantity exceeds available stock","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject checkout when requested quantity exceeds available stock"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","2. Prescription Gating & Order State Machine"],"duration":209,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 2. Prescription Gating & Order State Machine should mark prescription-required order as AWAITING_PRESCRIPTION upon checkout","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should mark prescription-required order as AWAITING_PRESCRIPTION upon checkout"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","2. Prescription Gating & Order State Machine"],"duration":47,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 2. Prescription Gating & Order State Machine should FORBID moving to PICKING while prescription is unverified","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should FORBID moving to PICKING while prescription is unverified"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","2. Prescription Gating & Order State Machine"],"duration":49,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 2. Prescription Gating & Order State Machine should FORBID batch allocation while prescription is unverified","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should FORBID batch allocation while prescription is unverified"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","2. Prescription Gating & Order State Machine"],"duration":64,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 2. Prescription Gating & Order State Machine should unlock order when an approved prescription is linked and verified","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should unlock order when an approved prescription is linked and verified"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","2. Prescription Gating & Order State Machine"],"duration":139,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 2. Prescription Gating & Order State Machine should reject Schedule X medicines from online checkout","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject Schedule X medicines from online checkout"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing"],"duration":119,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing should allocate batches and confirm picking (CONFIRMED -> PICKING)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should allocate batches and confirm picking (CONFIRMED -> PICKING)"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing"],"duration":170,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing should package the order (PICKING -> PACKED)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should package the order (PICKING -> PACKED)"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing"],"duration":146,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing should dispatch the order, commit reservations, and generate GST Invoice (PACKED -> DISPATCHED)","invocations":1,"location":null,"numPassingAsserts":14,"retryReasons":[],"status":"passed","title":"should dispatch the order, commit reservations, and generate GST Invoice (PACKED -> DISPATCHED)"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing"],"duration":52,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing should retrieve the generated GST Tax Invoice via API","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should retrieve the generated GST Tax Invoice via API"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing"],"duration":94,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing should mark the order as DELIVERED upon customer receipt","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should mark the order as DELIVERED upon customer receipt"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing"],"duration":137,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 3. Picking, Packing, Dispatch, Ledger Commit & GST Invoicing should verify that all status transitions are preserved in OrderStatusHistory","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should verify that all status transitions are preserved in OrderStatusHistory"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","4. Cancellation Rules & Reservation Releases"],"duration":366,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 4. Cancellation Rules & Reservation Releases should allow cancellation before dispatch and release active stock reservations","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should allow cancellation before dispatch and release active stock reservations"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","4. Cancellation Rules & Reservation Releases"],"duration":627,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 4. Cancellation Rules & Reservation Releases should FORBID cancelling an order that has already been dispatched","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should FORBID cancelling an order that has already been dispatched"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","5. Customer Returns & Credit Note Generation"],"duration":69,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 5. Customer Returns & Credit Note Generation should submit a customer return request for a delivered item","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should submit a customer return request for a delivered item"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","5. Customer Returns & Credit Note Generation"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 5. Customer Returns & Credit Note Generation should allow pharmacy admin to inspect, approve return, and issue Credit Note","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should allow pharmacy admin to inspect, approve return, and issue Credit Note"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","6. Admin Order Dashboard & Search"],"duration":55,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 6. Admin Order Dashboard & Search should retrieve admin order queue with status filter","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should retrieve admin order queue with status filter"},{"ancestorTitles":["Phase 7: Order Management & Fulfillment Suite","6. Admin Order Dashboard & Search"],"duration":51,"failureDetails":[],"failureMessages":[],"fullName":"Phase 7: Order Management & Fulfillment Suite 6. Admin Order Dashboard & Search should FORBID customer from accessing admin fulfillment dashboard","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should FORBID customer from accessing admin fulfillment dashboard"}],"endTime":1792761727425,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase7.test.js","startTime":1792761716238,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":97,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should reject prescription upload without a document file","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject prescription upload without a document file"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":50,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should reject disguised text/executable disguised as PDF","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject disguised text/executable disguised as PDF"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":301,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should reject uploads that exceed the 10MB file limit","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject uploads that exceed the 10MB file limit"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":99,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should reject unsupported MIME types and more than five prescription files","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject unsupported MIME types and more than five prescription files"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":367,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should successfully upload valid PDF prescription and queue as PENDING_REVIEW","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should successfully upload valid PDF prescription and queue as PENDING_REVIEW"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":159,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should upload second prescription for customer 1 linked to an existing order","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should upload second prescription for customer 1 linked to an existing order"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should list customer own prescriptions","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should list customer own prescriptions"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","1. Prescription Upload & File Validation Security"],"duration":280,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 1. Prescription Upload & File Validation Security should not expose another customer's orders or addresses","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should not expose another customer's orders or addresses"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","2. Document Access Controls & Private Storage Protection"],"duration":73,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 2. Document Access Controls & Private Storage Protection should allow customer 1 to stream their own uploaded prescription document","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should allow customer 1 to stream their own uploaded prescription document"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","2. Document Access Controls & Private Storage Protection"],"duration":61,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 2. Document Access Controls & Private Storage Protection should FORBID customer 2 from accessing customer 1 prescription details (403)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should FORBID customer 2 from accessing customer 1 prescription details (403)"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","2. Document Access Controls & Private Storage Protection"],"duration":38,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 2. Document Access Controls & Private Storage Protection should FORBID customer 2 from streaming customer 1 prescription document (403)","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should FORBID customer 2 from streaming customer 1 prescription document (403)"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","2. Document Access Controls & Private Storage Protection"],"duration":62,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 2. Document Access Controls & Private Storage Protection should allow registered pharmacist to stream customer prescription document","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should allow registered pharmacist to stream customer prescription document"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","2. Document Access Controls & Private Storage Protection"],"duration":110,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 2. Document Access Controls & Private Storage Protection should generate short-lived signed token and stream document securely","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should generate short-lived signed token and stream document securely"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","3. Pharmacist Review Queue & Claiming"],"duration":45,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 3. Pharmacist Review Queue & Claiming should list pending prescriptions in the pharmacist review queue","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should list pending prescriptions in the pharmacist review queue"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","3. Pharmacist Review Queue & Claiming"],"duration":66,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 3. Pharmacist Review Queue & Claiming should allow pharmacist to claim a prescription for review (IN_REVIEW)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should allow pharmacist to claim a prescription for review (IN_REVIEW)"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","3. Pharmacist Review Queue & Claiming"],"duration":55,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 3. Pharmacist Review Queue & Claiming should allow pharmacist to unclaim prescription back to general queue (PENDING_REVIEW)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should allow pharmacist to unclaim prescription back to general queue (PENDING_REVIEW)"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","4. Clarification Request & Customer Response Workflow"],"duration":141,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 4. Clarification Request & Customer Response Workflow should allow pharmacist to request clarification on prescription","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should allow pharmacist to request clarification on prescription"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","4. Clarification Request & Customer Response Workflow"],"duration":88,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 4. Clarification Request & Customer Response Workflow should allow customer to respond to clarification request with notes","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should allow customer to respond to clarification request with notes"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","5. Clinical Verification & Regulatory Approval Gate"],"duration":51,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 5. Clinical Verification & Regulatory Approval Gate should REJECT approval if clinical checklist is incomplete or uncertified","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT approval if clinical checklist is incomplete or uncertified"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","5. Clinical Verification & Regulatory Approval Gate"],"duration":84,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 5. Clinical Verification & Regulatory Approval Gate should REJECT approval if prescription contains prohibited Schedule X / restricted narcotics","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT approval if prescription contains prohibited Schedule X / restricted narcotics"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","5. Clinical Verification & Regulatory Approval Gate"],"duration":54,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 5. Clinical Verification & Regulatory Approval Gate should REJECT approval if prescription issue date is expired (> 180 days)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT approval if prescription issue date is expired (> 180 days)"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","5. Clinical Verification & Regulatory Approval Gate"],"duration":185,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 5. Clinical Verification & Regulatory Approval Gate should APPROVE valid prescription and record reviewing pharmacist license snapshot","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"should APPROVE valid prescription and record reviewing pharmacist license snapshot"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","6. Customer Confirmation & Stock Reservation"],"duration":362,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 6. Customer Confirmation & Stock Reservation should re-check stock at confirmation and reserve the selected approved quantity","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"status":"passed","title":"should re-check stock at confirmation and reserve the selected approved quantity"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","6. Customer Confirmation & Stock Reservation"],"duration":453,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 6. Customer Confirmation & Stock Reservation should accept a quoted special-order item and wait for supplier stock","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should accept a quoted special-order item and wait for supplier stock"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","6. Prescription-to-Order Linking & Dispensing Validation"],"duration":83,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 6. Prescription-to-Order Linking & Dispensing Validation should link approved prescription to customer order and update order status to VERIFIED","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should link approved prescription to customer order and update order status to VERIFIED"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","6. Prescription-to-Order Linking & Dispensing Validation"],"duration":58,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 6. Prescription-to-Order Linking & Dispensing Validation should dispense prescription and generate cryptographic SHA-256 seal","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should dispense prescription and generate cryptographic SHA-256 seal"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","6. Prescription-to-Order Linking & Dispensing Validation"],"duration":54,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 6. Prescription-to-Order Linking & Dispensing Validation should retrieve full prescription audit logs and access history","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should retrieve full prescription audit logs and access history"},{"ancestorTitles":["Phase 6: Secure Prescription Management Suite","7. Formal Prescription Rejection"],"duration":222,"failureDetails":[],"failureMessages":[],"fullName":"Phase 6: Secure Prescription Management Suite 7. Formal Prescription Rejection should formally reject an unreadable or tampered prescription with documented reason","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should formally reject an unreadable or tampered prescription with documented reason"}],"endTime":1792761739330,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase6.test.js","startTime":1792761727438,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","1. Duplicate Organization & Branch Code Enforcement"],"duration":96,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 1. Duplicate Organization & Branch Code Enforcement should reject creating duplicate branch code in the same organization","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject creating duplicate branch code in the same organization"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","1. Duplicate Organization & Branch Code Enforcement"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 1. Duplicate Organization & Branch Code Enforcement should allow creating a branch with a unique code and create an audit log","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should allow creating a branch with a unique code and create an audit log"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","2. Cross-Branch Access Restriction (Data Isolation)"],"duration":64,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 2. Cross-Branch Access Restriction (Data Isolation) should allow pharmacy admin to access their assigned branch (HQ-BLR-01)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should allow pharmacy admin to access their assigned branch (HQ-BLR-01)"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","2. Cross-Branch Access Restriction (Data Isolation)"],"duration":51,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 2. Cross-Branch Access Restriction (Data Isolation) should FORBID pharmacy admin from accessing a restricted branch (BR-DEL-01)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should FORBID pharmacy admin from accessing a restricted branch (BR-DEL-01)"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","2. Cross-Branch Access Restriction (Data Isolation)"],"duration":54,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 2. Cross-Branch Access Restriction (Data Isolation) should allow Super Admin to access any branch across the enterprise","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should allow Super Admin to access any branch across the enterprise"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","3. Token Rotation, Revocation & Token Reuse Detection"],"duration":1102,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 3. Token Rotation, Revocation & Token Reuse Detection should login and issue refresh token backed by UserSession","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should login and issue refresh token backed by UserSession"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","3. Token Rotation, Revocation & Token Reuse Detection"],"duration":2094,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 3. Token Rotation, Revocation & Token Reuse Detection should rotate refresh token and revoke the previous session","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"should rotate refresh token and revoke the previous session"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","4. User Management & Immediate Deactivation Revocation"],"duration":621,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 4. User Management & Immediate Deactivation Revocation should create a new staff user with branch assignments and audit record","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should create a new staff user with branch assignments and audit record"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","4. User Management & Immediate Deactivation Revocation"],"duration":1182,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 4. User Management & Immediate Deactivation Revocation should login as the new user and obtain an active session","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should login as the new user and obtain an active session"},{"ancestorTitles":["Phase 1: Organization & Security Architecture Tests","5. Audit Logs Search & Verification"],"duration":76,"failureDetails":[],"failureMessages":[],"fullName":"Phase 1: Organization & Security Architecture Tests 5. Audit Logs Search & Verification should search audit logs and return populated events with pagination","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should search audit logs and return populated events with pagination"}],"endTime":1792761750266,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase1.test.js","startTime":1792761739348,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","1. Delivery Zones & Postal-Code Serviceability"],"duration":150,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 1. Delivery Zones & Postal-Code Serviceability should provide operational dashboard metrics to staff only","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should provide operational dashboard metrics to staff only"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","1. Delivery Zones & Postal-Code Serviceability"],"duration":130,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 1. Delivery Zones & Postal-Code Serviceability should create a delivery zone with serviceable postal codes","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should create a delivery zone with serviceable postal codes"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","1. Delivery Zones & Postal-Code Serviceability"],"duration":38,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 1. Delivery Zones & Postal-Code Serviceability should confirm serviceability for a covered postal code","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should confirm serviceability for a covered postal code"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","1. Delivery Zones & Postal-Code Serviceability"],"duration":34,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 1. Delivery Zones & Postal-Code Serviceability should reject serviceability for an uncovered postal code","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject serviceability for an uncovered postal code"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","2. Delivery Slots & Fee Calculation"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 2. Delivery Slots & Fee Calculation should configure an express delivery slot","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should configure an express delivery slot"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","2. Delivery Slots & Fee Calculation"],"duration":50,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 2. Delivery Slots & Fee Calculation should create a tiered delivery fee rule with free delivery threshold","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should create a tiered delivery fee rule with free delivery threshold"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","2. Delivery Slots & Fee Calculation"],"duration":34,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 2. Delivery Slots & Fee Calculation should calculate standard base fee for order value under threshold","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should calculate standard base fee for order value under threshold"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","2. Delivery Slots & Fee Calculation"],"duration":32,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 2. Delivery Slots & Fee Calculation should calculate zero fee (Free Delivery) for order value meeting threshold","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should calculate zero fee (Free Delivery) for order value meeting threshold"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","3. Delivery Partner Master & Authorization"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 3. Delivery Partner Master & Authorization should register a new delivery partner profile","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should register a new delivery partner profile"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","3. Delivery Partner Master & Authorization"],"duration":57,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 3. Delivery Partner Master & Authorization should register rider 2 as unverified partner","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should register rider 2 as unverified partner"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","3. Delivery Partner Master & Authorization"],"duration":61,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 3. Delivery Partner Master & Authorization should verify rider 1 profile by authorized admin","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should verify rider 1 profile by authorized admin"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","4. Delivery Initialization & Assignment"],"duration":89,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 4. Delivery Initialization & Assignment should initialize delivery for packed customer order","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should initialize delivery for packed customer order"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","4. Delivery Initialization & Assignment"],"duration":81,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 4. Delivery Initialization & Assignment should initialize cold chain delivery and flag temperature requirements","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should initialize cold chain delivery and flag temperature requirements"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","4. Delivery Initialization & Assignment"],"duration":57,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 4. Delivery Initialization & Assignment should REJECT assignment if partner is not verified (Rider 2)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT assignment if partner is not verified (Rider 2)"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","4. Delivery Initialization & Assignment"],"duration":78,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 4. Delivery Initialization & Assignment should assign delivery to verified partner (Rider 1)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should assign delivery to verified partner (Rider 1)"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","5. Branch Pickup & Cold Chain Handling"],"duration":64,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 5. Branch Pickup & Cold Chain Handling should assign cold chain delivery to rider 1","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"status":"passed","title":"should assign cold chain delivery to rider 1"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","5. Branch Pickup & Cold Chain Handling"],"duration":48,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 5. Branch Pickup & Cold Chain Handling should REJECT cold chain pickup if temperature exceeds safe 2°C - 8°C limits","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT cold chain pickup if temperature exceeds safe 2°C - 8°C limits"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","5. Branch Pickup & Cold Chain Handling"],"duration":43,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 5. Branch Pickup & Cold Chain Handling should allow pickup when temperature is within compliant 2°C - 8°C range","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should allow pickup when temperature is within compliant 2°C - 8°C range"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","5. Branch Pickup & Cold Chain Handling"],"duration":47,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 5. Branch Pickup & Cold Chain Handling should allow standard delivery pickup","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should allow standard delivery pickup"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","6. Dispatch & Secure Proof of Delivery OTP"],"duration":275,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 6. Dispatch & Secure Proof of Delivery OTP should start transit (out for delivery) and generate secure OTP","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should start transit (out for delivery) and generate secure OTP"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","6. Dispatch & Secure Proof of Delivery OTP"],"duration":45,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 6. Dispatch & Secure Proof of Delivery OTP should REJECT completion with an invalid OTP","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT completion with an invalid OTP"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","6. Dispatch & Secure Proof of Delivery OTP"],"duration":95,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 6. Dispatch & Secure Proof of Delivery OTP should accept an optional photo proof from the assigned rider","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should accept an optional photo proof from the assigned rider"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","6. Dispatch & Secure Proof of Delivery OTP"],"duration":251,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 6. Dispatch & Secure Proof of Delivery OTP should complete delivery successfully with verified OTP proof","invocations":1,"location":null,"numPassingAsserts":14,"retryReasons":[],"status":"passed","title":"should complete delivery successfully with verified OTP proof"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","7. Exception Handling, Rescheduling & Return to Branch"],"duration":165,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 7. Exception Handling, Rescheduling & Return to Branch should dispatch cold chain delivery","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should dispatch cold chain delivery"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","7. Exception Handling, Rescheduling & Return to Branch"],"duration":140,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 7. Exception Handling, Rescheduling & Return to Branch should record failed attempt without corrupting order status (reschedule)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should record failed attempt without corrupting order status (reschedule)"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","7. Exception Handling, Rescheduling & Return to Branch"],"duration":244,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 7. Exception Handling, Rescheduling & Return to Branch should transition to RETURNED_TO_BRANCH on customer refusal","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should transition to RETURNED_TO_BRANCH on customer refusal"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","7. Exception Handling, Rescheduling & Return to Branch"],"duration":71,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 7. Exception Handling, Rescheduling & Return to Branch should execute pharmacist return-to-branch inspection & restocking signoff","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should execute pharmacist return-to-branch inspection & restocking signoff"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","8. Privacy, Access Controls & Delivery Reports"],"duration":82,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 8. Privacy, Access Controls & Delivery Reports should FORBID partner from accessing deliveries assigned to other partners","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should FORBID partner from accessing deliveries assigned to other partners"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","8. Privacy, Access Controls & Delivery Reports"],"duration":58,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 8. Privacy, Access Controls & Delivery Reports should return masked customer information for authorized delivery partner","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should return masked customer information for authorized delivery partner"},{"ancestorTitles":["Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite","8. Privacy, Access Controls & Delivery Reports"],"duration":58,"failureDetails":[],"failureMessages":[],"fullName":"Phase 9: Delivery Management, Dispatch & Proof of Delivery Suite 8. Privacy, Access Controls & Delivery Reports should generate accurate delivery KPI reports","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should generate accurate delivery KPI reports"}],"endTime":1792761762745,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase9.test.js","startTime":1792761750286,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","1. Payment Initiation & Idempotency"],"duration":86,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 1. Payment Initiation & Idempotency should initiate Cashfree payment session for an order","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should initiate Cashfree payment session for an order"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","1. Payment Initiation & Idempotency"],"duration":75,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 1. Payment Initiation & Idempotency should return existing payment session when retrying with identical idempotencyKey","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should return existing payment session when retrying with identical idempotencyKey"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","1. Payment Initiation & Idempotency"],"duration":68,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 1. Payment Initiation & Idempotency should reject payment initiation for a non-existent order","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should reject payment initiation for a non-existent order"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","2. Server-Side Payment Status Verification"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 2. Server-Side Payment Status Verification should verify payment directly with gateway and update order to PAID and CONFIRMED","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should verify payment directly with gateway and update order to PAID and CONFIRMED"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","2. Server-Side Payment Status Verification"],"duration":63,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 2. Server-Side Payment Status Verification should reject payment initiation if order has already been PAID","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject payment initiation if order has already been PAID"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","3. Webhook Processing & Cryptographic Signature Validation"],"duration":34,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 3. Webhook Processing & Cryptographic Signature Validation should REJECT webhook request missing signature headers","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT webhook request missing signature headers"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","3. Webhook Processing & Cryptographic Signature Validation"],"duration":25,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 3. Webhook Processing & Cryptographic Signature Validation should REJECT webhook request with an invalid HMAC-SHA256 signature","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT webhook request with an invalid HMAC-SHA256 signature"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","3. Webhook Processing & Cryptographic Signature Validation"],"duration":146,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 3. Webhook Processing & Cryptographic Signature Validation should accept valid webhook with authentic HMAC-SHA256 signature and update payment status","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should accept valid webhook with authentic HMAC-SHA256 signature and update payment status"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","3. Webhook Processing & Cryptographic Signature Validation"],"duration":36,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 3. Webhook Processing & Cryptographic Signature Validation should idempotently handle repeated webhook deliveries without duplicate processing","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should idempotently handle repeated webhook deliveries without duplicate processing"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","4. Refund Management & Authorization"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 4. Refund Management & Authorization should submit a valid refund request for a paid order","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should submit a valid refund request for a paid order"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","4. Refund Management & Authorization"],"duration":70,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 4. Refund Management & Authorization should REJECT refund request when amount exceeds remaining eligible payment amount","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should REJECT refund request when amount exceeds remaining eligible payment amount"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","4. Refund Management & Authorization"],"duration":52,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 4. Refund Management & Authorization should FORBID non-admin staff from approving refunds","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should FORBID non-admin staff from approving refunds"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","4. Refund Management & Authorization"],"duration":98,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 4. Refund Management & Authorization should allow authorized Pharmacy Admin to approve and execute refund via Gateway","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should allow authorized Pharmacy Admin to approve and execute refund via Gateway"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","5. Payment Settlement & Cash-on-Delivery (COD) Reconciliation"],"duration":66,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 5. Payment Settlement & Cash-on-Delivery (COD) Reconciliation should reconcile gateway settlement against expected payment totals","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should reconcile gateway settlement against expected payment totals"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","5. Payment Settlement & Cash-on-Delivery (COD) Reconciliation"],"duration":69,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 5. Payment Settlement & Cash-on-Delivery (COD) Reconciliation should flag discrepancy when actual settled amount differs from expected total","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should flag discrepancy when actual settled amount differs from expected total"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","5. Payment Settlement & Cash-on-Delivery (COD) Reconciliation"],"duration":78,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 5. Payment Settlement & Cash-on-Delivery (COD) Reconciliation should reconcile physical branch Cash-on-Delivery (COD) collections from courier","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reconcile physical branch Cash-on-Delivery (COD) collections from courier"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","6. Financial Reports & Audit Trail"],"duration":63,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 6. Financial Reports & Audit Trail should generate sales and settlement KPI summary report","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should generate sales and settlement KPI summary report"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","6. Financial Reports & Audit Trail"],"duration":9,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 6. Financial Reports & Audit Trail should verify that all financial events generated immutable FinancialAuditLogs","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should verify that all financial events generated immutable FinancialAuditLogs"},{"ancestorTitles":["Phase 8: Payments, Gateway Integration & Financial Auditing Suite","6. Financial Reports & Audit Trail"],"duration":59,"failureDetails":[],"failureMessages":[],"fullName":"Phase 8: Payments, Gateway Integration & Financial Auditing Suite 6. Financial Reports & Audit Trail should list payments with search and pagination for admin console","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should list payments with search and pagination for admin console"}],"endTime":1792761771345,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase8.test.js","startTime":1792761762769,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Notification Templates & Rendering"],"duration":362,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Notification Templates & Rendering seeds and lists default compliant notification templates","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"seeds and lists default compliant notification templates"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Notification Templates & Rendering"],"duration":10,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Notification Templates & Rendering renders template variables accurately without leaking sensitive clinical diagnoses","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"renders template variables accurately without leaking sensitive clinical diagnoses"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Idempotent Dispatch & Duplicate Event Prevention"],"duration":81,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Idempotent Dispatch & Duplicate Event Prevention successfully dispatches a notification on first submission","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"successfully dispatches a notification on first submission"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Idempotent Dispatch & Duplicate Event Prevention"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Idempotent Dispatch & Duplicate Event Prevention safely intercepts duplicate event delivery without generating duplicate external messages","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"safely intercepts duplicate event delivery without generating duplicate external messages"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Customer Communication Preferences & Consent Enforcement"],"duration":115,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Customer Communication Preferences & Consent Enforcement allows a customer to fetch and update their communication preferences","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"allows a customer to fetch and update their communication preferences"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Customer Communication Preferences & Consent Enforcement"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Customer Communication Preferences & Consent Enforcement respects opt-out and cancels notification if customer has withdrawn consent","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"respects opt-out and cancels notification if customer has withdrawn consent"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Retry Policy, Failure Tracking & Backoff Limits"],"duration":140,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Retry Policy, Failure Tracking & Backoff Limits records failed attempts and allows safe retry within limits","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"records failed attempts and allows safe retry within limits"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Retry Policy, Failure Tracking & Backoff Limits"],"duration":63,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Retry Policy, Failure Tracking & Backoff Limits enforces maximum retry limits and rejects retries exceeding threshold","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"enforces maximum retry limits and rejects retries exceeding threshold"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Confirmed Business Event Hooks"],"duration":57,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Confirmed Business Event Hooks executes triggerPrescriptionReviewed for approved prescription","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"executes triggerPrescriptionReviewed for approved prescription"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Confirmed Business Event Hooks"],"duration":23,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Confirmed Business Event Hooks executes triggerDeliveryDispatched with secure OTP","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"executes triggerDeliveryDispatched with secure OTP"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Tickets, FAQs & Security Isolation"],"duration":31,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Tickets, FAQs & Security Isolation returns structured FAQ categories for customer self-service","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"returns structured FAQ categories for customer self-service"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Tickets, FAQs & Security Isolation"],"duration":95,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Tickets, FAQs & Security Isolation allows a customer to create a support ticket with automatic ticket number formatting","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"allows a customer to create a support ticket with automatic ticket number formatting"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Tickets, FAQs & Security Isolation"],"duration":89,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Tickets, FAQs & Security Isolation customer 2 creates a separate support ticket","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"customer 2 creates a separate support ticket"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Tickets, FAQs & Security Isolation"],"duration":81,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Tickets, FAQs & Security Isolation enforces customer access isolation: Customer 2 CANNOT access Customer 1 ticket","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"enforces customer access isolation: Customer 2 CANNOT access Customer 1 ticket"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Tickets, FAQs & Security Isolation"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Tickets, FAQs & Security Isolation allows staff (pharmacist / admin) to access any ticket","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"allows staff (pharmacist / admin) to access any ticket"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Messages & Internal Notes Protection"],"duration":71,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Messages & Internal Notes Protection prevents customer from posting internal notes (Forbidden)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"prevents customer from posting internal notes (Forbidden)"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Messages & Internal Notes Protection"],"duration":101,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Messages & Internal Notes Protection allows staff to post an internal note visible only to staff","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"allows staff to post an internal note visible only to staff"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Messages & Internal Notes Protection"],"duration":89,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Messages & Internal Notes Protection allows staff to reply publicly to the customer","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"allows staff to reply publicly to the customer"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Messages & Internal Notes Protection"],"duration":120,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Messages & Internal Notes Protection strictly hides internal notes when customer views their ticket thread","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"strictly hides internal notes when customer views their ticket thread"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Support Messages & Internal Notes Protection"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Support Messages & Internal Notes Protection exposes internal notes when staff views the ticket thread","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"exposes internal notes when staff views the ticket thread"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Ticket Assignment, Escalation & Resolution"],"duration":95,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Ticket Assignment, Escalation & Resolution assigns ticket to pharmacist staff member with audit trail","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"assigns ticket to pharmacist staff member with audit trail"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Ticket Assignment, Escalation & Resolution"],"duration":62,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Ticket Assignment, Escalation & Resolution escalates ticket to GRIEVANCE_OFFICER for severe complaints","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"escalates ticket to GRIEVANCE_OFFICER for severe complaints"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Ticket Assignment, Escalation & Resolution"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Ticket Assignment, Escalation & Resolution rejects invalid escalation levels","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"rejects invalid escalation levels"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Ticket Assignment, Escalation & Resolution"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Ticket Assignment, Escalation & Resolution resolves ticket with required resolution notes","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"resolves ticket with required resolution notes"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Ticket Assignment, Escalation & Resolution"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Ticket Assignment, Escalation & Resolution allows customer to submit CSAT rating (1-5 stars)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"allows customer to submit CSAT rating (1-5 stars)"},{"ancestorTitles":["Phase 10: Notifications, Communications & Customer Support Suite","Ticket Assignment, Escalation & Resolution"],"duration":61,"failureDetails":[],"failureMessages":[],"fullName":"Phase 10: Notifications, Communications & Customer Support Suite Ticket Assignment, Escalation & Resolution rejects invalid CSAT scores outside 1-5 range","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"rejects invalid CSAT scores outside 1-5 range"}],"endTime":1792761783708,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase10.test.js","startTime":1792761771359,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 1: Daily, Weekly & Monthly Sales Summary"],"duration":97,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 1: Daily, Weekly & Monthly Sales Summary accurately reconciles gross sales, tax, delivery fee, discounts, and net sales","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"accurately reconciles gross sales, tax, delivery fee, discounts, and net sales"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 1: Daily, Weekly & Monthly Sales Summary"],"duration":61,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 1: Daily, Weekly & Monthly Sales Summary supports weekly and monthly periodic intervals","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"supports weekly and monthly periodic intervals"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 2: Branch-wise Sales and Order Performance"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 2: Branch-wise Sales and Order Performance returns accurate breakdown of orders and revenue per branch","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"status":"passed","title":"returns accurate breakdown of orders and revenue per branch"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 3: Product-wise and Category-wise Sales"],"duration":64,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 3: Product-wise and Category-wise Sales reconciles units sold and revenue by SKU and Category","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"reconciles units sold and revenue by SKU and Category"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 4: Best-selling and Slow-moving Products"],"duration":64,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 4: Best-selling and Slow-moving Products identifies top selling items and flags low-turnover in-stock medicines","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"identifies top selling items and flags low-turnover in-stock medicines"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 5: Current Stock and Stock Valuation"],"duration":75,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 5: Current Stock and Stock Valuation calculates total cost valuation, retail MRP valuation and margins","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"calculates total cost valuation, retail MRP valuation and margins"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 6: Batch and Near-Expiry Reports"],"duration":64,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 6: Batch and Near-Expiry Reports filters batches expiring within specified threshold and computes value at risk","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"filters batches expiring within specified threshold and computes value at risk"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 7: Expired, Blocked, and Recalled Stock"],"duration":62,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 7: Expired, Blocked, and Recalled Stock computes financial loss from expired or quarantined stock","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"computes financial loss from expired or quarantined stock"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 8: Purchase and Supplier Analysis"],"duration":63,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 8: Purchase and Supplier Analysis summarizes purchase order counts and total procurement expenditure","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"summarizes purchase order counts and total procurement expenditure"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 9: Inventory Movement and Transfer Reports"],"duration":69,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 9: Inventory Movement and Transfer Reports returns paginated ledger transaction history","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"returns paginated ledger transaction history"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 10: Prescription Review and Dispensing Audit"],"duration":81,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 10: Prescription Review and Dispensing Audit audits prescription review approval rates and pharmacist sign-off","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"audits prescription review approval rates and pharmacist sign-off"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 11: Order Cancellation and Refund Reports"],"duration":58,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 11: Order Cancellation and Refund Reports tracks cancellation counts and processed refunds","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"tracks cancellation counts and processed refunds"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 12: Payment Reconciliation and Settlement Reports"],"duration":65,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 12: Payment Reconciliation and Settlement Reports summarizes payment gateway volume and reconciliation matches","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"summarizes payment gateway volume and reconciliation matches"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 13: Delivery Turnaround and Fulfillment Performance"],"duration":63,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 13: Delivery Turnaround and Fulfillment Performance calculates dispatch-to-doorstep turnaround minutes","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"calculates dispatch-to-doorstep turnaround minutes"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 14: Customer Repeat-Order and Retention Reports"],"duration":50,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 14: Customer Repeat-Order and Retention Reports calculates repeat customer rate and active purchasing base","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"calculates repeat customer rate and active purchasing base"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Report 15: User Activity and Administrative Audit Reports"],"duration":62,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Report 15: User Activity and Administrative Audit Reports lists security and operational audit trails","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"lists security and operational audit trails"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Security & Branch Scoping Enforcement"],"duration":53,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Security & Branch Scoping Enforcement allows branch manager to view reports for their permitted branch (Branch 1)","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"allows branch manager to view reports for their permitted branch (Branch 1)"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Security & Branch Scoping Enforcement"],"duration":61,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Security & Branch Scoping Enforcement PREVENTS branch manager from accessing reports of an unauthorized branch (Branch 2) -> 403 Forbidden","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"PREVENTS branch manager from accessing reports of an unauthorized branch (Branch 2) -> 403 Forbidden"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Security & Branch Scoping Enforcement"],"duration":51,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Security & Branch Scoping Enforcement PREVENTS standard customer from accessing operational reports -> 403 Forbidden","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"PREVENTS standard customer from accessing operational reports -> 403 Forbidden"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Authorized CSV Report Exports"],"duration":54,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Authorized CSV Report Exports exports sales summary to CSV with attachment header and valid columns","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"exports sales summary to CSV with attachment header and valid columns"},{"ancestorTitles":["Phase 11: Operational Reports, Analytics & Branch Scoping Suite","Authorized CSV Report Exports"],"duration":66,"failureDetails":[],"failureMessages":[],"fullName":"Phase 11: Operational Reports, Analytics & Branch Scoping Suite Authorized CSV Report Exports exports stock valuation to CSV with accurate currency units","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"exports stock valuation to CSV with accurate currency units"}],"endTime":1792761794468,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase11.test.js","startTime":1792761783724,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Customer OTP authentication"],"duration":99,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication stores a hash and returns an account-independent send response","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"stores a hash and returns an account-independent send response"},{"ancestorTitles":["Customer OTP authentication"],"duration":3902,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication logs customer accounts in and creates a new customer when needed","invocations":1,"location":null,"numPassingAsserts":16,"retryReasons":[],"status":"passed","title":"logs customer accounts in and creates a new customer when needed"},{"ancestorTitles":["Customer OTP authentication"],"duration":410,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication expires codes and locks after five incorrect attempts","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"expires codes and locks after five incorrect attempts"},{"ancestorTitles":["Customer OTP authentication"],"duration":323,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication enforces resend cooldown and the hourly phone send cap","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"enforces resend cooldown and the hourly phone send cap"},{"ancestorTitles":["Customer OTP authentication"],"duration":884,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication applies the OTP send IP rate limit independently of the per-phone cap","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"applies the OTP send IP rate limit independently of the per-phone cap"},{"ancestorTitles":["Customer OTP authentication"],"duration":109,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication rejects staff phone numbers from customer OTP login","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"rejects staff phone numbers from customer OTP login"},{"ancestorTitles":["Customer OTP authentication"],"duration":40,"failureDetails":[],"failureMessages":[],"fullName":"Customer OTP authentication rejects malformed Indian mobile numbers","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"rejects malformed Indian mobile numbers"}],"endTime":1792761804589,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\customer.otp.test.js","startTime":1792761794487,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","1. Goods Receipt Integration & Batch Creation"],"duration":96,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 1. Goods Receipt Integration & Batch Creation should post goods receipt lines and populate batches, balances and ledger entries","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"should post goods receipt lines and populate batches, balances and ledger entries"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","1. Goods Receipt Integration & Batch Creation"],"duration":17,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 1. Goods Receipt Integration & Batch Creation should handle idempotent receipt posting without duplicating transactions","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"should handle idempotent receipt posting without duplicating transactions"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","2. FEFO Strategy & Available Stock"],"duration":81,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 2. FEFO Strategy & Available Stock should allocate batches in FEFO order (earliest unexpired first) and never allocate expired stock","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should allocate batches in FEFO order (earliest unexpired first) and never allocate expired stock"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","2. FEFO Strategy & Available Stock"],"duration":97,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 2. FEFO Strategy & Available Stock should accurately calculate available stock excluding reserved and blocked units","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should accurately calculate available stock excluding reserved and blocked units"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","3. Order Reservations & Concurrency Safety"],"duration":126,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 3. Order Reservations & Concurrency Safety should reserve stock, update reserved quantities, and create reservation hold ledger entries","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should reserve stock, update reserved quantities, and create reservation hold ledger entries"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","3. Order Reservations & Concurrency Safety"],"duration":124,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 3. Order Reservations & Concurrency Safety should commit reservation and consume onHand & reserved stock","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should commit reservation and consume onHand & reserved stock"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","3. Order Reservations & Concurrency Safety"],"duration":195,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 3. Order Reservations & Concurrency Safety should release cancelled reservation back to the available pool","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should release cancelled reservation back to the available pool"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","3. Order Reservations & Concurrency Safety"],"duration":124,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 3. Order Reservations & Concurrency Safety should prevent overselling when requested stock exceeds total available","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should prevent overselling when requested stock exceeds total available"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","4. Stock Adjustments"],"duration":101,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 4. Stock Adjustments should adjust stock quantity upwards and record an ADJUSTMENT_ADD transaction","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should adjust stock quantity upwards and record an ADJUSTMENT_ADD transaction"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","4. Stock Adjustments"],"duration":86,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 4. Stock Adjustments should adjust stock downwards for damage/writeoff and record DAMAGE_WRITEOFF","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should adjust stock downwards for damage/writeoff and record DAMAGE_WRITEOFF"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","5. Inter-Branch Transfers & In-Transit Rule"],"duration":103,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 5. Inter-Branch Transfers & In-Transit Rule should create an inter-branch transfer in DRAFT status","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should create an inter-branch transfer in DRAFT status"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","5. Inter-Branch Transfers & In-Transit Rule"],"duration":100,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 5. Inter-Branch Transfers & In-Transit Rule should dispatch transfer: deduct stock from source, set IN_TRANSIT, and NOT make stock available at destination","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should dispatch transfer: deduct stock from source, set IN_TRANSIT, and NOT make stock available at destination"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","5. Inter-Branch Transfers & In-Transit Rule"],"duration":109,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 5. Inter-Branch Transfers & In-Transit Rule should receive transfer: increase destination stock upon physical receipt","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should receive transfer: increase destination stock upon physical receipt"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","6. Stock Counts & Variance Reconciliation"],"duration":91,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 6. Stock Counts & Variance Reconciliation should initiate stock count session snapshotting current batches","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should initiate stock count session snapshotting current batches"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","6. Stock Counts & Variance Reconciliation"],"duration":74,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 6. Stock Counts & Variance Reconciliation should record counted physical lines and calculate variance","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should record counted physical lines and calculate variance"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","6. Stock Counts & Variance Reconciliation"],"duration":103,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 6. Stock Counts & Variance Reconciliation should reconcile stock count and post variance adjustment transactions","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reconcile stock count and post variance adjustment transactions"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","7. Quarantine, Stock Blocks and CDSCO Regulatory Recall"],"duration":153,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 7. Quarantine, Stock Blocks and CDSCO Regulatory Recall should block/quarantine stock and prevent its allocation","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should block/quarantine stock and prevent its allocation"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","7. Quarantine, Stock Blocks and CDSCO Regulatory Recall"],"duration":153,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 7. Quarantine, Stock Blocks and CDSCO Regulatory Recall should release quarantined stock back to active inventory","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should release quarantined stock back to active inventory"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","7. Quarantine, Stock Blocks and CDSCO Regulatory Recall"],"duration":126,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 7. Quarantine, Stock Blocks and CDSCO Regulatory Recall should execute CDSCO product recall locking affected batch across all branches","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should execute CDSCO product recall locking affected batch across all branches"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","8. Inventory Dashboard, Valuation & Ledger Auditing"],"duration":70,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 8. Inventory Dashboard, Valuation & Ledger Auditing should return aggregated inventory KPIs on dashboard","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should return aggregated inventory KPIs on dashboard"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","8. Inventory Dashboard, Valuation & Ledger Auditing"],"duration":75,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 8. Inventory Dashboard, Valuation & Ledger Auditing should return batch valuation report with MRP margins","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should return batch valuation report with MRP margins"},{"ancestorTitles":["Phase 4: Inventory and Batch Management Suite","8. Inventory Dashboard, Valuation & Ledger Auditing"],"duration":77,"failureDetails":[],"failureMessages":[],"fullName":"Phase 4: Inventory and Batch Management Suite 8. Inventory Dashboard, Valuation & Ledger Auditing should return full immutable stock ledger with audit trails","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should return full immutable stock ledger with audit trails"}],"endTime":1792761814878,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase4.test.js","startTime":1792761804605,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 5: Customer Storefront Tests","1. Customer Registration & Authentication"],"duration":2031,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 1. Customer Registration & Authentication should register a new customer account and create profile, preferences, and cart","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should register a new customer account and create profile, preferences, and cart"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","1. Customer Registration & Authentication"],"duration":134,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 1. Customer Registration & Authentication should fetch customer profile with health information and preferences","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should fetch customer profile with health information and preferences"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","1. Customer Registration & Authentication"],"duration":117,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 1. Customer Registration & Authentication should update customer profile and medical information","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should update customer profile and medical information"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","2. Public Catalog Search & Filters"],"duration":85,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 2. Public Catalog Search & Filters should search products by generic name or composition without authentication","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should search products by generic name or composition without authentication"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","2. Public Catalog Search & Filters"],"duration":66,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 2. Public Catalog Search & Filters should filter products by prescription requirement","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should filter products by prescription requirement"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","2. Public Catalog Search & Filters"],"duration":59,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 2. Public Catalog Search & Filters should return detailed product page and never expose internal cost price or supplier details","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should return detailed product page and never expose internal cost price or supplier details"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","2. Public Catalog Search & Filters"],"duration":58,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 2. Public Catalog Search & Filters should list public branches and validate serviceability by PIN code","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should list public branches and validate serviceability by PIN code"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","3. Address Book Management"],"duration":87,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 3. Address Book Management should add a delivery address with serviceability validation","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should add a delivery address with serviceability validation"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","3. Address Book Management"],"duration":84,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 3. Address Book Management should list customer saved addresses","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should list customer saved addresses"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","4. Shopping Cart & Server Recalculation"],"duration":145,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 4. Shopping Cart & Server Recalculation should add an item to the shopping cart and recalculate prices and taxes","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"status":"passed","title":"should add an item to the shopping cart and recalculate prices and taxes"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","4. Shopping Cart & Server Recalculation"],"duration":179,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 4. Shopping Cart & Server Recalculation should update cart item quantity and recalculate server totals","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should update cart item quantity and recalculate server totals"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","4. Shopping Cart & Server Recalculation"],"duration":151,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 4. Shopping Cart & Server Recalculation should add a prescription medicine and flag prescription requirement","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should add a prescription medicine and flag prescription requirement"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","4. Shopping Cart & Server Recalculation"],"duration":88,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 4. Shopping Cart & Server Recalculation should reject adding quantity exceeding available branch inventory","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject adding quantity exceeding available branch inventory"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","5. Saved Products (Wishlist)"],"duration":91,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 5. Saved Products (Wishlist) should save a product to customer wishlist","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should save a product to customer wishlist"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","5. Saved Products (Wishlist)"],"duration":80,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 5. Saved Products (Wishlist) should list customer saved products","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should list customer saved products"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","6. Checkout Preparation & Order Placement"],"duration":211,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 6. Checkout Preparation & Order Placement should prepare checkout with authoritative server recalculations and prescription notice","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should prepare checkout with authoritative server recalculations and prescription notice"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","6. Checkout Preparation & Order Placement"],"duration":331,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 6. Checkout Preparation & Order Placement should place customer order and clear the shopping cart","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should place customer order and clear the shopping cart"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","6. Checkout Preparation & Order Placement"],"duration":82,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 6. Checkout Preparation & Order Placement should list customer order history with accurate details","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should list customer order history with accurate details"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","6a. Guest Cart Pricing & Merge"],"duration":198,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 6a. Guest Cart Pricing & Merge reprices guest items publicly and merges only validated quantities after login","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"reprices guest items publicly and merges only validated quantities after login"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","6a. Guest Cart Pricing & Merge"],"duration":119,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 6a. Guest Cart Pricing & Merge treats missing branch inventory as out of stock in catalog and guest-cart pricing","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"treats missing branch inventory as out of stock in catalog and guest-cart pricing"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","7. Customer Support & Inquiries"],"duration":41,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 7. Customer Support & Inquiries should submit a customer inquiry / feedback","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should submit a customer inquiry / feedback"},{"ancestorTitles":["Phase 5: Customer Storefront Tests","7. Customer Support & Inquiries"],"duration":38,"failureDetails":[],"failureMessages":[],"fullName":"Phase 5: Customer Storefront Tests 7. Customer Support & Inquiries should retrieve customer FAQs","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should retrieve customer FAQs"}],"endTime":1792761824487,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase5.test.js","startTime":1792761814904,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","1. Product Creation, Medicine Details & Validation Rules"],"duration":76,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 1. Product Creation, Medicine Details & Validation Rules should reject creating product when sellingPrice > MRP","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject creating product when sellingPrice > MRP"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","1. Product Creation, Medicine Details & Validation Rules"],"duration":184,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 1. Product Creation, Medicine Details & Validation Rules should successfully create product with clinical details, active ingredients, packs and images","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should successfully create product with clinical details, active ingredients, packs and images"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","1. Product Creation, Medicine Details & Validation Rules"],"duration":73,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 1. Product Creation, Medicine Details & Validation Rules should reject creating duplicate SKU in the same organization","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject creating duplicate SKU in the same organization"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","2. Product Search, Filtering and Consistency Across Branches"],"duration":95,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 2. Product Search, Filtering and Consistency Across Branches should retrieve products with pagination and filter by search term","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should retrieve products with pagination and filter by search term"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","2. Product Search, Filtering and Consistency Across Branches"],"duration":192,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 2. Product Search, Filtering and Consistency Across Branches should maintain consistent shared product identity across branches","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should maintain consistent shared product identity across branches"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","3. Branch Pricing & Historical Price Tracking"],"duration":221,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 3. Branch Pricing & Historical Price Tracking should update branch price, close previous active price, and preserve price history","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should update branch price, close previous active price, and preserve price history"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","3. Branch Pricing & Historical Price Tracking"],"duration":94,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 3. Branch Pricing & Historical Price Tracking should reject branch price when user tries to update an unauthorized branch","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject branch price when user tries to update an unauthorized branch"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","4. Branch Product Availability & Settings"],"duration":127,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 4. Branch Product Availability & Settings should update branch availability and thresholds without mutating shared product details","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should update branch availability and thresholds without mutating shared product details"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","5. Audit Trail for Administrative Catalog Actions"],"duration":10,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 5. Audit Trail for Administrative Catalog Actions should record audit events for product creation and price changes","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should record audit events for product creation and price changes"},{"ancestorTitles":["Phase 2: Product Catalog, Medicine Master & Pricing Tests","6. Public Storefront Catalog Endpoint"],"duration":53,"failureDetails":[],"failureMessages":[],"fullName":"Phase 2: Product Catalog, Medicine Master & Pricing Tests 6. Public Storefront Catalog Endpoint should allow unauthenticated customer to fetch published products","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should allow unauthenticated customer to fetch published products"}],"endTime":1792761835416,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase2.test.js","startTime":1792761824506,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Master Operations"],"duration":166,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Master Operations should create a new pharmaceutical supplier with contacts and addresses","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should create a new pharmaceutical supplier with contacts and addresses"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Master Operations"],"duration":70,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Master Operations should reject duplicate supplier code within the same organization","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject duplicate supplier code within the same organization"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Master Operations"],"duration":89,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Master Operations should list suppliers with search and pagination","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should list suppliers with search and pagination"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Master Operations"],"duration":93,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Master Operations should update supplier details","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should update supplier details"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Purchase Orders & Approval Workflow"],"duration":129,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Purchase Orders & Approval Workflow should create a purchase order in DRAFT status with auto-calculated totals","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should create a purchase order in DRAFT status with auto-calculated totals"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Purchase Orders & Approval Workflow"],"duration":113,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Purchase Orders & Approval Workflow should submit purchase order transitioning DRAFT -> SUBMITTED","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should submit purchase order transitioning DRAFT -> SUBMITTED"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Purchase Orders & Approval Workflow"],"duration":70,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Purchase Orders & Approval Workflow should disallow unauthorized pharmacist from approving purchase order","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should disallow unauthorized pharmacist from approving purchase order"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Purchase Orders & Approval Workflow"],"duration":113,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Purchase Orders & Approval Workflow should allow authorized administrator to approve purchase order","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should allow authorized administrator to approve purchase order"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Goods Receipt Note (GRN) Processing"],"duration":205,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Goods Receipt Note (GRN) Processing should reject GRN creation for draft or unapproved purchase orders","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject GRN creation for draft or unapproved purchase orders"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Goods Receipt Note (GRN) Processing"],"duration":79,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Goods Receipt Note (GRN) Processing should reject receipt quantity exceeding the ordered quantity balance","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject receipt quantity exceeding the ordered quantity balance"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Goods Receipt Note (GRN) Processing"],"duration":90,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Goods Receipt Note (GRN) Processing should reject receipt with invalid MRP lower than purchase cost","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject receipt with invalid MRP lower than purchase cost"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Goods Receipt Note (GRN) Processing"],"duration":359,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Goods Receipt Note (GRN) Processing should successfully post partial goods receipt note (GRN 1) and update PO to PARTIALLY_RECEIVED","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"status":"passed","title":"should successfully post partial goods receipt note (GRN 1) and update PO to PARTIALLY_RECEIVED"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Goods Receipt Note (GRN) Processing"],"duration":279,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Goods Receipt Note (GRN) Processing should post second goods receipt for the remaining 40 units and transition PO to RECEIVED","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should post second goods receipt for the remaining 40 units and transition PO to RECEIVED"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Goods Receipt Note (GRN) Processing"],"duration":87,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Goods Receipt Note (GRN) Processing should prevent duplicate receipt processing once PO is completely received","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should prevent duplicate receipt processing once PO is completely received"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Invoices"],"duration":104,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Invoices should record a supplier invoice against the goods receipt","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should record a supplier invoice against the goods receipt"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Invoices"],"duration":92,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Invoices should update invoice payment status and paid amount","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should update invoice payment status and paid amount"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Returns (Purchase Returns)"],"duration":133,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Returns (Purchase Returns) should process a supplier return and trace inventory deduction hook","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should process a supplier return and trace inventory deduction hook"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Supplier Returns (Purchase Returns)"],"duration":70,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Supplier Returns (Purchase Returns) should list supplier returns with line items","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should list supplier returns with line items"},{"ancestorTitles":["Phase 3: Suppliers & Procurement Operations Test Suite","Procurement Reports & Summary"],"duration":96,"failureDetails":[],"failureMessages":[],"fullName":"Phase 3: Suppliers & Procurement Operations Test Suite Procurement Reports & Summary should calculate accurate procurement KPIs and fulfillment rate","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"status":"passed","title":"should calculate accurate procurement KPIs and fulfillment rate"}],"endTime":1792761846318,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\phase3.test.js","startTime":1792761835428,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Authentication & Validation Endpoints","POST /api/v1/auth/login validation"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Authentication & Validation Endpoints POST /api/v1/auth/login validation should reject login with empty body","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"should reject login with empty body"},{"ancestorTitles":["Authentication & Validation Endpoints","POST /api/v1/auth/login validation"],"duration":55,"failureDetails":[],"failureMessages":[],"fullName":"Authentication & Validation Endpoints POST /api/v1/auth/login validation should reject login with invalid email","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject login with invalid email"},{"ancestorTitles":["Authentication & Validation Endpoints","POST /api/v1/auth/login validation"],"duration":36,"failureDetails":[],"failureMessages":[],"fullName":"Authentication & Validation Endpoints POST /api/v1/auth/login validation should reject login with password shorter than 8 characters","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject login with password shorter than 8 characters"},{"ancestorTitles":["Authentication & Validation Endpoints","POST /api/v1/auth/register validation"],"duration":37,"failureDetails":[],"failureMessages":[],"fullName":"Authentication & Validation Endpoints POST /api/v1/auth/register validation should reject registration if password does not meet complexity requirements","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject registration if password does not meet complexity requirements"},{"ancestorTitles":["Authentication & Validation Endpoints","Protected Route Authentication Middleware"],"duration":42,"failureDetails":[],"failureMessages":[],"fullName":"Authentication & Validation Endpoints Protected Route Authentication Middleware should reject access to /api/v1/auth/me without Authorization header","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should reject access to /api/v1/auth/me without Authorization header"},{"ancestorTitles":["Authentication & Validation Endpoints","Protected Route Authentication Middleware"],"duration":34,"failureDetails":[],"failureMessages":[],"fullName":"Authentication & Validation Endpoints Protected Route Authentication Middleware should reject access to /api/v1/auth/me with invalid Bearer token","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should reject access to /api/v1/auth/me with invalid Bearer token"}],"endTime":1792761849187,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\auth.test.js","startTime":1792761846331,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Health & Readiness Endpoints","GET /api/v1/health"],"duration":41,"failureDetails":[],"failureMessages":[],"fullName":"Health & Readiness Endpoints GET /api/v1/health should return 200 and liveness status","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"status":"passed","title":"should return 200 and liveness status"},{"ancestorTitles":["Health & Readiness Endpoints","GET /api/v1/health"],"duration":33,"failureDetails":[],"failureMessages":[],"fullName":"Health & Readiness Endpoints GET /api/v1/health should set X-Request-Id header on response","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should set X-Request-Id header on response"},{"ancestorTitles":["Health & Readiness Endpoints","GET /api/v1/health/ready"],"duration":67,"failureDetails":[],"failureMessages":[],"fullName":"Health & Readiness Endpoints GET /api/v1/health/ready should return health readiness structure (200 or 503 depending on db connectivity)","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"should return health readiness structure (200 or 503 depending on db connectivity)"}],"endTime":1792761851734,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\health.test.js","startTime":1792761849201,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Global Error & 404 Handling"],"duration":42,"failureDetails":[],"failureMessages":[],"fullName":"Global Error & 404 Handling should return 404 NOT_FOUND with standard error envelope for nonexistent route","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"should return 404 NOT_FOUND with standard error envelope for nonexistent route"},{"ancestorTitles":["Global Error & 404 Handling"],"duration":51,"failureDetails":[],"failureMessages":[],"fullName":"Global Error & 404 Handling should handle malformed JSON gracefully","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"should handle malformed JSON gracefully"}],"endTime":1792761854217,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\error.test.js","startTime":1792761851751,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Login portal role separation"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"Login portal role separation rejects customer-only accounts from the staff portal","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"rejects customer-only accounts from the staff portal"},{"ancestorTitles":["Login portal role separation"],"duration":15,"failureDetails":[],"failureMessages":[],"fullName":"Login portal role separation rejects staff-only accounts from the customer portal","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"rejects staff-only accounts from the customer portal"}],"endTime":1792761855903,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\auth.portal.test.js","startTime":1792761854230,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["public order tracking"],"duration":8,"failureDetails":[],"failureMessages":[],"fullName":"public order tracking returns only the order status timeline and a masked address","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"returns only the order status timeline and a masked address"}],"endTime":1792761857200,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\order-public-tracking.test.js","startTime":1792761855919,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["delivery dispatch prescription gate"],"duration":51,"failureDetails":[],"failureMessages":[],"fullName":"delivery dispatch prescription gate blocks dispatch while an order prescription is awaiting pharmacist verification","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"blocks dispatch while an order prescription is awaiting pharmacist verification"}],"endTime":1792761858583,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\delivery-prescription-gate.test.js","startTime":1792761857214,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["prescription quote lifecycle"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"prescription quote lifecycle customer can request a fresh quote after expiry and gets an audit record","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"customer can request a fresh quote after expiry and gets an audit record"},{"ancestorTitles":["prescription quote lifecycle"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"prescription quote lifecycle customer cannot requeue a prescription with a live quote","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"customer cannot requeue a prescription with a live quote"},{"ancestorTitles":["prescription quote lifecycle"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"prescription quote lifecycle declining a quote marks it CUSTOMER_DECLINED and releases legacy reservations","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"declining a quote marks it CUSTOMER_DECLINED and releases legacy reservations"},{"ancestorTitles":["prescription quote lifecycle"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"prescription quote lifecycle pharmacist inventory preview includes exact branch quantity, price, tax, and batch expiry","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"pharmacist inventory preview includes exact branch quantity, price, tax, and batch expiry"},{"ancestorTitles":["prescription quote lifecycle"],"duration":9,"failureDetails":[],"failureMessages":[],"fullName":"prescription quote lifecycle expired quotes notify the customer without failing expiry processing","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"expired quotes notify the customer without failing expiry processing"}],"endTime":1792761859114,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\prescription-quotes.test.js","startTime":1792761858618,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["special-order advance payments"],"duration":11,"failureDetails":[],"failureMessages":[],"fullName":"special-order advance payments requires special-order IDs only for advance payments","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"requires special-order IDs only for advance payments"},{"ancestorTitles":["special-order advance payments"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"special-order advance payments initiates Cashfree for the server-calculated advance, not the full customer order","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"initiates Cashfree for the server-calculated advance, not the full customer order"},{"ancestorTitles":["special-order advance payments"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"special-order advance payments verification marks only the advance allocation paid, not the whole order","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"verification marks only the advance allocation paid, not the whole order"},{"ancestorTitles":["special-order advance payments"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"special-order advance payments records an automatic refund failure for staff follow-up without throwing","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"records an automatic refund failure for staff follow-up without throwing"},{"ancestorTitles":["special-order advance payments"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"special-order advance payments refunds a paid advance against its original Cashfree order reference","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"status":"passed","title":"refunds a paid advance against its original Cashfree order reference"}],"endTime":1792761859772,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\special-order-advance-payment.test.js","startTime":1792761859162,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["WhatsApp and SMTP notification providers"],"duration":152,"failureDetails":[],"failureMessages":[],"fullName":"WhatsApp and SMTP notification providers production mock SMS refuses to send and never logs the OTP","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"production mock SMS refuses to send and never logs the OTP"},{"ancestorTitles":["WhatsApp and SMTP notification providers"],"duration":7,"failureDetails":[],"failureMessages":[],"fullName":"WhatsApp and SMTP notification providers normalizes Indian phone numbers and sends a Meta template message","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"normalizes Indian phone numbers and sends a Meta template message"},{"ancestorTitles":["WhatsApp and SMTP notification providers"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"WhatsApp and SMTP notification providers sends SMTP messages with text and rendered HTML bodies","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"sends SMTP messages with text and rendered HTML bodies"},{"ancestorTitles":["notification event dispatch"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"notification event dispatch dispatches prescription approval independently over both channels with medicine and confirmation details","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"dispatches prescription approval independently over both channels with medicine and confirmation details"},{"ancestorTitles":["notification event dispatch"],"duration":8,"failureDetails":[],"failureMessages":[],"fullName":"notification event dispatch dispatches prescription quote line items, total, expiry link, and confirmation link","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"dispatches prescription quote line items, total, expiry link, and confirmation link"},{"ancestorTitles":["notification event dispatch"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"notification event dispatch uses stable positional parameters for special-order and quote-reminder templates","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"uses stable positional parameters for special-order and quote-reminder templates"},{"ancestorTitles":["notification event dispatch"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"notification event dispatch sends an expired quote notification with a fresh quote action","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"sends an expired quote notification with a fresh quote action"},{"ancestorTitles":["notification event dispatch"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"notification event dispatch a failed channel is returned and does not prevent the other channel dispatch","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"a failed channel is returned and does not prevent the other channel dispatch"}],"endTime":1792761860672,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\notification.providers.test.js","startTime":1792761859786,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["prescription special-order lifecycle"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle scopes the staff queue to permitted branches","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"scopes the staff queue to permitted branches"},{"ancestorTitles":["prescription special-order lifecycle"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle creates a supplier PO for the outstanding quantity and links its line","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"status":"passed","title":"creates a supplier PO for the outstanding quantity and links its line"},{"ancestorTitles":["prescription special-order lifecycle"],"duration":20,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle does not create a supplier PO until a required advance is paid","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"does not create a supplier PO until a required advance is paid"},{"ancestorTitles":["prescription special-order lifecycle"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle cancels an unplaced special-only order and tolerates notification failure","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"status":"passed","title":"cancels an unplaced special-only order and tolerates notification failure"},{"ancestorTitles":["prescription special-order lifecycle"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle partial and complete supplier receipts reserve stock and advance order state","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"status":"passed","title":"partial and complete supplier receipts reserve stock and advance order state"},{"ancestorTitles":["prescription special-order lifecycle"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle marks special-order items delivered with their fulfillment order","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"marks special-order items delivered with their fulfillment order"},{"ancestorTitles":["prescription special-order lifecycle"],"duration":3,"failureDetails":[],"failureMessages":[],"fullName":"prescription special-order lifecycle blocks cancellation after a special medicine has been ordered from a supplier","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"blocks cancellation after a special medicine has been ordered from a supplier"}],"endTime":1792761861229,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\special-orders.test.js","startTime":1792761860684,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["guest checkout validation"],"duration":5,"failureDetails":[],"failureMessages":[],"fullName":"guest checkout validation accepts guest delivery details and cart without an account or phone verification","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"accepts guest delivery details and cart without an account or phone verification"},{"ancestorTitles":["guest checkout validation"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"guest checkout validation rejects invalid contact phone numbers","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"rejects invalid contact phone numbers"},{"ancestorTitles":["guest checkout validation"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"guest checkout validation continues to accept authenticated checkout by saved address","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"continues to accept authenticated checkout by saved address"}],"endTime":1792761861531,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\guest-checkout-validation.test.js","startTime":1792761861238,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["Customer-only authorization"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Customer-only authorization allows only a user whose sole assigned role is CUSTOMER","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"status":"passed","title":"allows only a user whose sole assigned role is CUSTOMER"},{"ancestorTitles":["Customer-only authorization"],"duration":2,"failureDetails":[],"failureMessages":[],"fullName":"Customer-only authorization rejects staff and mixed-role accounts from customer-only APIs","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"rejects staff and mixed-role accounts from customer-only APIs"},{"ancestorTitles":["Customer-only authorization"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"Customer-only authorization rejects customer tokens from staff APIs even if customer permissions are misconfigured","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"rejects customer tokens from staff APIs even if customer permissions are misconfigured"}],"endTime":1792761861675,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\rbac.portal.test.js","startTime":1792761861541,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":["signed public order tracking token"],"duration":6,"failureDetails":[],"failureMessages":[],"fullName":"signed public order tracking token verifies the order ID without exposing it as token text","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"verifies the order ID without exposing it as token text"},{"ancestorTitles":["signed public order tracking token"],"duration":4,"failureDetails":[],"failureMessages":[],"fullName":"signed public order tracking token rejects tampered and expired tokens","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"status":"passed","title":"rejects tampered and expired tokens"}],"endTime":1792761861849,"message":"","name":"D:\\Pharmacy-app\\backend\\tests\\order-tracking-token.test.js","startTime":1792761861690,"status":"passed","summary":""}],"wasInterrupted":false}
