A cheap boil on a late price › A late price reaches the cheap rate not run
As a tea drinker, I want the kettle to boil even when the price is late, so that I do not miss a cheap hour.
The test behind the tutorial A cheap boil on a late price: every step it takes, what it checks and what it saw.
Start
From the setup of Smart kettle.
Everything it starts with
Given the price feed is live And the cheap boil is off
- the price feed is live · arranged
- the cheap boil is off · arranged
1 When the user asks for a cheap boil
When the user asks for a cheap boil Then the cheap boil is waiting
Expected behaviour: Asking for a cheap boil makes the kettle wait.
- the cheap boil is waiting · Asking for a cheap boil makes the kettle wait
2 When the feed falls behind
When the feed falls behind Then the price feed is delayed
Expected behaviour: A late provider is shown as delayed.
- the price feed is delayed · A late provider is shown as delayed
3 When the price drops to the cheap rate
When the price drops to the cheap rate Then the cheap boil is boiling
Expected behaviour: A delayed price can start the boil.
- the cheap boil is boiling · A delayed price can start the boil