Smart kettle

Smart kettle

Test report

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
No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.
  • 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.

No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.

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.

No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.

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.

No screenshot yet: the tests haven't run.
No screenshot yet: the tests haven't run.