A cheap boil on a late price
Whether a late price may start a boil is not decided yet (see the boiling when it is cheap topic), so this tutorial is proposed and is left out of the approved manual.
Fill the kettle, set the price you call cheap and tap Boil when cheap.
The Cheap boil button reads "Waiting for a cheap price".
Screenshot to come. Make the test provider send prices late.
The price has an amber dot and says when it was last updated.
Screenshot to come. Have the test provider send a price at or below your cheap rate.
The display reads HEATING and a banner says the price is cheap.
Screenshot to come.
Learn more
How this is tested not run
This tutorial is also an acceptance test. Its report has every step, check and screenshot from the last run.
The user story: 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.
When the user asks for a cheap boil Then the cheap boil is waiting When the feed falls behind Then the price feed is delayed When the price drops to the cheap rate Then the cheap boil is boiling