From c07ed142657a89983ef4efac11fc9d8ed95b5677 Mon Sep 17 00:00:00 2001 From: Sam Burns Date: Wed, 24 Jan 2024 16:17:01 +0000 Subject: [PATCH] To prepare for new feature, gather requirements for conjured items --- .../feature_files/conjured-items.feature | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 php/tests/behat/feature_files/conjured-items.feature diff --git a/php/tests/behat/feature_files/conjured-items.feature b/php/tests/behat/feature_files/conjured-items.feature new file mode 100644 index 00000000..657712b2 --- /dev/null +++ b/php/tests/behat/feature_files/conjured-items.feature @@ -0,0 +1,22 @@ +Feature: Conjured items + In order to keep track of conjured items + As a shopkeeper + I want to see the quality of a conjured item decrease by 2 each day + + @wip + Scenario: Single quality update + Given a conjured item with a sell-in of 20 and a quality of 20 + When I update the quality + Then the item should have a quality of 18 + + @wip + Scenario: Quality cannot be negative + Given a conjured item with a sell-in of 20 and a quality of 0 + When I update the quality + Then the item should have a quality of 0 + + @wip + Scenario: Once the sell-by date has passed, quality degrades twice as fast + Given a conjured item with a sell-in of 0 and a quality of 20 + When I update the quality + Then the item should have a quality of 16