Knowing how far to trust the price › A price goes late, then missing, then returns not run
As a tea drinker, I want to see when the price is old, so that I do not wait for, or rely on, a price that has already changed.
The test behind the tutorial Knowing how far to trust the 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 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
2 When the feed stops answering
When the feed stops answering Then the price feed is unavailable
Expected behaviour: A delayed feed can stop answering.
- the price feed is unavailable · A delayed feed can stop answering
3 When the feed answers again
When the feed answers again Then the price feed is live
Expected behaviour: Retry brings the price back when the provider is back.
- the price feed is live · Retry brings the price back when the provider is back