Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Features from the legacy app that are still missing in this version
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Feature: Alternate preparations for recipes | ||
|
||
As a user curious about a recipe | ||
I want to see a list of similar recipes | ||
So that I can find a recipe that matches my tastes or ingredients on hand | ||
|
||
Scenario: No alternate preparation | ||
|
||
Given a "pancake" recipe with "buttermilk" in it | ||
And no other recipes | ||
When I view the recipe | ||
Then I should see no alternate preparations | ||
|
||
Scenario: Alternate preparation | ||
|
||
Given a "Hearty Pancake" recipe with "wheat germ" in it | ||
And a "Buttermilk Pancake" recipe with "buttermilk" in it | ||
And a "Pancake" recipe with "chocolate chips" in it | ||
When the three pancake recipes are alternate preparations of each other | ||
And I visit the "Hearty Pancake" recipe | ||
Then I should see a link to the "Buttermilk Pancake" recipe | ||
And I should see a link to the "Pancake" recipe | ||
And I should not see a link to the "Hearty Pancake" recipe | ||
When I click the "Buttermilk Pancake" link | ||
Then I should see a link to the "Hearty Pancake" recipe | ||
And I should see a link to the "Pancake" recipe | ||
And I should not see a link to the "Buttermilk Pancake" recipe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Feature: Updating recipes in our cookbook | ||
|
||
As an author | ||
I want to mark recipes as replacing old one | ||
So that I can record improvements and retain previous attempts for reference | ||
|
||
Scenario: No previous or next version of a recipe | ||
|
||
Given a "Buttermilk Pancake" recipe with "buttermilk" in it | ||
When I view the recipe | ||
Then I should not see previous versions of the recipe | ||
And I should not see updated versions of the recipe | ||
|
||
Scenario: A previous version of the recipe | ||
|
||
Given a "Buttermilk Pancake" recipe with "buttermilk" in it | ||
And a "Buttermilk Pancake" recipe on another day with "lowfat milk" in it | ||
When the recipe with "buttermilk" is marked as update of the previous recipe | ||
And I visit the recipe with "buttermilk" in it | ||
Then I should see a link to the previous recipe with "lowfat milk" in it | ||
And I should not see updated versions of the recipe | ||
And I visit the recipe with "lowfat milk" in it | ||
Then I should see a link to the updated recipe with "buttermilk" in it | ||
And I should not see previous versions of the recipe | ||
|