Smart kettle

Smart kettle

Test report

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
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 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.

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

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.

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

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.

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