# Sanity test case template

Sanity tests check one change narrowly after a fix or a small release: that the change works and that the things right next to it still do. They are quick and focused, not broad. Examples are for an example online shop; replace them with your own app's.

## SAN-01: The discount applies

Change checked: Fix: discount code ignored at checkout

Steps:

1. Add a product to the cart
2. Enter the code SAVE10 at checkout

Expected result: The total drops by 10% and the code shows under the total.

Status: Passed

Notes: Example row

## SAN-02: An expired code is refused

Change checked: Fix: discount code ignored at checkout

Steps:

1. Enter an expired code at checkout

Expected result: A message says the code has expired, and the total is unchanged.

Status: Passed

Notes: Example row

## SAN-03: Removing the code restores the total

Change checked: Fix: discount code ignored at checkout

Steps:

1. Apply SAVE10
2. Select Remove next to the code

Expected result: The total returns to the full price.

Status: Passed

Notes: Example row

## SAN-04: The date shows

Change checked: New: delivery date on product pages

Steps:

1. Open a product that is in stock

Expected result: An estimated delivery date shows under the price.

Status: Failed

Notes: Example row: date missing on mobile

## SAN-05: Out of stock shows no date

Change checked: New: delivery date on product pages

Steps:

1. Open a product that is out of stock

Expected result: No delivery date shows, and the page says when it is back.

Status: Passed

Notes: Example row
