Created
June 17, 2017 21:54
-
-
Save njenan/41ab68e498d0755bfa532ee71cd84928 to your computer and use it in GitHub Desktop.
Example of low level catalog specification
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
Feature: Manage bookstore catalog | |
As the owner of the bookstore | |
I want to add books to the catalog | |
In order to make all the money | |
Scenario: Add book to catalog | |
Given there are 2 books for sale | |
When I navigate to the add book admin page | |
And I enter the book information | |
And I click the submit button | |
Then I should see 3 books on the main catalog view | |
Scenario: Remove book from catalog | |
Given there are 3 books for sale | |
When I navigate to the remove book admin page | |
And I select the book to remove | |
And I click the submit button | |
Then I should see 2 books on the main catalog view | |
Scenario: Can't add same book twice | |
Given there is a unique book in the catalog | |
When I navigate to the add book admin page | |
And I enter the same book information | |
And I click the submit button | |
Then I should see an error message dialog | |
And the book should not be created |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment