Having a good example-driven conversation can be messy. Humans scribble on whiteboards, rip up index cards, and stick things to the wall.
Automating examples brings huge benefits, but forcing them into linear Gherkin doesn't always feel natural. We'll explore some more natural visual formats for examples, and how they can practically be used to drive tests.
8. Scenario: Present for full amount
Given I have a pending transaction for £100
When a presentment for £100 is received
Then I should have a completed transaction for £100
Scenario: Present for less than full amount
Given I have a pending transaction for £100
When a presentment for £50 is received
Then I should have a completed transaction for £50
And I should have a pending transaction for £50