Skip to main content

Inventory

Scenario 1: User creates a basic grocery product

  • Given the User is on the Inventory Page
  • When the User clicks the 'Add New Inventory' button
  • And the User selects "Grocery" from the Category dropdown
  • And the User types "Basmati Rice 5kg" in the Name field
  • And the User enters "450" in the Suggested Unit Price field
  • And the User clicks 'Submit'
  • Then the new item appears in the inventory list

Scenario 2: User creates an electronics product with SKU and stock

  • Given the User is on the Inventory Page
  • When the User clicks the 'Add New Inventory' button
  • And the User selects "Electronics" from the Category dropdown
  • And the User types "Samsung 32-inch LED TV" in the Name field
  • And the User enters "20000" in the Suggested Unit Price field
  • And the User enters "SM-TV32-2025" in the SKU field
  • And the User enters "15" in the Initial Stock field
  • And the User selects "Main Warehouse" from the Location dropdown
  • And the User clicks 'Submit'
  • Then the new item appears in the inventory list with 15 units in stock

Scenario 3: User handles special character and long name

  • Given the User is on the Inventory Page
  • When the User clicks the 'Add New Inventory' button
  • And the User selects "Books" from the Category dropdown
  • And the User types "The Complete Guide to Business Analytics & Data Science: A Comprehensive Reference for Professionals (2025 Edition) - Hardcover" in the Name field
  • And the User enters "1299.99" in the Suggested Unit Price field
  • And the User clicks 'Submit'
  • Then the new item appears in the inventory list
  • And the full name displays properly in the details view

Scenario 4: User creates a product with decimal price

  • Given the User is on the Inventory Page
  • When the User clicks the 'Add New Inventory' button
  • And the User selects "Beverages" from the Category dropdown
  • And the User types "Mineral Water 500ml" in the Name field
  • And the User enters "15.50" in the Suggested Unit Price field
  • And the User clicks 'Submit'
  • Then the new item appears in the inventory list with price "15.50"

Scenario 5: User attempts to enter invalid price values

  • Given the User is on the Inventory Page
  • When the User clicks the 'Add New Inventory' button
  • And the User selects "Stationery" from the Category dropdown
  • And the User types "Premium Notebook" in the Name field
  • And the User enters "-50" in the Suggested Unit Price field
  • Then an error message appears indicating price cannot be negative
  • When the User clears the Suggested Unit Price field
  • Then an error message appears indicating price is required
  • When the User enters "abc" in the Suggested Unit Price field
  • Then an error message appears indicating price must be a number

Scenario 6: User creates a new category during inventory creation

  • Given the User is on the Inventory Page
  • When the User clicks the 'Add New Inventory' button
  • And the User clicks "+ Add New Category" option in the Category dropdown
  • And the User enters "Kitchen Appliances" as the new category name
  • And the User clicks 'Create'
  • And the User types "Electric Kettle" in the Name field
  • And the User enters "1200" in the Suggested Unit Price field
  • And the User clicks 'Submit'
  • Then the new item appears in the inventory list under "Kitchen Appliances" category