Skip to content

Instantly share code, notes, and snippets.

@njenan
Created June 17, 2017 21:54
Show Gist options
  • Save njenan/41ab68e498d0755bfa532ee71cd84928 to your computer and use it in GitHub Desktop.
Save njenan/41ab68e498d0755bfa532ee71cd84928 to your computer and use it in GitHub Desktop.
Example of low level catalog specification
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