[BAEL-3445] Added Background examples to Cucumber examples (#8319)
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
Feature: Book Store With Background
|
||||
Background: The Book Store
|
||||
Given I have the following books in the store
|
||||
| The Devil in the White City | Erik Larson |
|
||||
| The Lion, the Witch and the Wardrobe | C.S. Lewis |
|
||||
| In the Garden of Beasts | Erik Larson |
|
||||
|
||||
Scenario: Find books by author
|
||||
When I search for books by author Erik Larson
|
||||
Then I find 2 books
|
||||
|
||||
Scenario: Find books by author, but isn't there
|
||||
When I search for books by author Marcel Proust
|
||||
Then I find 0 books
|
||||
|
||||
Scenario: Find book by title
|
||||
When I search for a book titled The Lion, the Witch and the Wardrobe
|
||||
Then I find a book
|
||||
|
||||
Scenario: Find book by title, but isn't there
|
||||
When I search for a book titled Swann's Way
|
||||
Then I find no book
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
Feature: Book Store Without Background
|
||||
Scenario: Find books by author
|
||||
Given I have the following books in the store
|
||||
| The Devil in the White City | Erik Larson |
|
||||
| The Lion, the Witch and the Wardrobe | C.S. Lewis |
|
||||
| In the Garden of Beasts | Erik Larson |
|
||||
When I search for books by author Erik Larson
|
||||
Then I find 2 books
|
||||
|
||||
Scenario: Find books by author, but isn't there
|
||||
Given I have the following books in the store
|
||||
| The Devil in the White City | Erik Larson |
|
||||
| The Lion, the Witch and the Wardrobe | C.S. Lewis |
|
||||
| In the Garden of Beasts | Erik Larson |
|
||||
When I search for books by author Marcel Proust
|
||||
Then I find 0 books
|
||||
|
||||
Scenario: Find book by title
|
||||
Given I have the following books in the store
|
||||
| The Devil in the White City | Erik Larson |
|
||||
| The Lion, the Witch and the Wardrobe | C.S. Lewis |
|
||||
| In the Garden of Beasts | Erik Larson |
|
||||
When I search for a book titled The Lion, the Witch and the Wardrobe
|
||||
Then I find a book
|
||||
|
||||
Scenario: Find book by title, but isn't there
|
||||
Given I have the following books in the store
|
||||
| The Devil in the White City | Erik Larson |
|
||||
| The Lion, the Witch and the Wardrobe | C.S. Lewis |
|
||||
| In the Garden of Beasts | Erik Larson |
|
||||
When I search for a book titled Swann's Way
|
||||
Then I find no book
|
||||
Reference in New Issue
Block a user