Acceptance Criteria
Definition
Acceptance criteria are the specific conditions a user story must meet to be accepted, often written as Given/When/Then scenarios, which also guide testing.
Diagram
Story: as a shopper, I want to use a discount code at checkout.
Scenario: Applying a valid code
Givena basket worth 40 and the code SPRING10
Whenthe shopper applies the code
Thenthe total drops to 36 and the code is shown as applied
Scenario: Applying an expired code
Giventhe code WINTER10, which expired yesterday
Whenthe shopper applies the code
Thenthe total stays the same and the message says the code has expired