QA Fundamentals · Middle · Question 19 of 75
What is a common mistake when writing Gherkin scenarios?
- 1Describing UI clicks instead of business behaviour
- 2Writing scenarios before the code is written
- 3Using Given, When and Then in one scenario
Show the answer
Correct answer: Describing UI clicks instead of business behaviour
Explanation
'When I click the blue button at the top' breaks with every redesign. 'When the user submits the order' expresses intent and keeps scenarios readable.