Skip to content

URS-014 · Display Available Inventory for Rep Trunk Stock

Status: PASS  ·  Duration: 49s  ·  Run Date: April 21, 2026


PASS

Step 1: Login and navigate

Step 1: Login and navigate


PASS

Step 2: Trunk inventory overview

Step 2: Trunk inventory overview


PASS

Step 3: Diagnostic Kit details


PASS

Step 4: Sterile Gloves details


PASS

Step 5: Antiseptic Solution details


PASS

Step 6: Filter functionality

Step 6: Filter functionality

Step 6: Filter functionality

PASS

Exactly 3 inventory items should exist at TRUNK-36

SELECT count(*)::int as item_count
FROM inventory_items ii
JOIN org_products op ON ii.product_id = op.id
WHERE ii.real_world_location_id = $1
AND op.sku IN ($2, $3, $4)
AND ii.organization_id = $5
item_count
3

PASS

Each product should have the correct title, lot, quantity, and expiration

SELECT op.title, op.sku, ii.lot, ii.expiration::text, ii.quantity_ready
FROM inventory_items ii
JOIN org_products op ON ii.product_id = op.id
WHERE ii.real_world_location_id = $1
AND op.sku IN ($2, $3, $4)
AND ii.organization_id = $5
ORDER BY op.title
titleskulotexpirationquantity_ready
Antiseptic Solution (500ml)URS014-AS-001AS-2024-1122026-09-158
Diagnostic KitURS014-DK-001DK-2024-0012026-12-3115
Sterile Gloves (Box of 100)URS014-SG-001SG-2024-0452027-06-3050

PASS

Total quantity should be 73 (15 + 50 + 8)

SELECT sum(ii.quantity_ready)::int as total_quantity
FROM inventory_items ii
JOIN org_products op ON ii.product_id = op.id
WHERE ii.real_world_location_id = $1
AND op.sku IN ($2, $3, $4)
AND ii.organization_id = $5
total_quantity
73

PASS

All inventory items should belong to the StellarTech organization

SELECT ii.organization_id, count(*)::int as item_count
FROM inventory_items ii
JOIN org_products op ON ii.product_id = op.id
WHERE ii.real_world_location_id = $1
AND op.sku IN ($2, $3, $4)
AND ii.organization_id = $5
GROUP BY ii.organization_id
organization_iditem_count
b2c3d4e5-f6a7-8901-bcde-f123456789013