-
-
Save jacobduijzer/e183517806d03abdf3fbbb8a10866335 to your computer and use it in GitHub Desktop.
GraphQL Specifications
This file contains hidden or 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: Searching for books | |
| As an avid reader | |
| I want to search for book information | |
| So that I can find new books I want to read | |
| Scenario: Going through a list of books | |
| Given a customer, searching for books to buy | |
| When the customer request the full list of books | |
| Then the customer should find the following books: | |
| | Title | Author | | |
| | The Great Gatsby | F. Scott Fitzgerald | | |
| | 1984 | George Orwell | | |
| | To Kill a Mockingbird | Harper Lee | | |
| Scenario: Searching books by title, getting stock information | |
| Given a customer, searching for books to buy | |
| When the customer is searching for books that contain "Great" | |
| Then the customer should find the following books: | |
| | Title | Author | | |
| | The Great Gatsby | F. Scott Fitzgerald | | |
| And the stock for this book should be 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment