QA Fundamentals · Middle · Question 18 of 75
What does this Gherkin scenario describe?
Given a cart with 2 items
When the user applies coupon "SAVE10"
Then the total is reduced by 10%- 1Context, action and expected outcome of one behaviour
- 2A unit test written in a special JavaScript syntax
- 3A list of steps the developer must code in order
Show the answer
Correct answer: Context, action and expected outcome of one behaviour
Explanation
Given sets up the state, When is the action, Then is the observable result. Good scenarios describe behaviour, not UI clicks, so they survive redesigns.