-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
HoolaBoola
committed
Dec 11, 2020
1 parent
f088655
commit e6aaa43
Showing
2 changed files
with
48 additions
and
23 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
54 changes: 31 additions & 23 deletions
54
src/test/resources/RecommendationLibrary/searchByTags.feature
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 |
---|---|---|
@@ -1,49 +1,57 @@ | ||
Feature: As a user I can list my recommendations | ||
Feature: As a user I can search a recommendation by tag | ||
|
||
Scenario: user can list added book recommendations | ||
Scenario: user can list added book tags | ||
Given command add is selected | ||
When command book is selected | ||
And book recommendation with author "AuthorTest", title "TitleTest", description "DescriptionTest", isbn "isbnTest" and page count "10" is added | ||
And command list is selected | ||
And command edit is selected | ||
And command book is selected | ||
And title "TitleTest" is entered | ||
And field to edit "6" is entered | ||
And tag "eka" is entered | ||
And command search tags is selected | ||
And field to edit "eka" is entered | ||
And command list books is selected | ||
Then app lists a recommendation with author "AuthorTest", title "TitleTest", description "DescriptionTest", isbn "isbnTest", and page count "10" | ||
|
||
Scenario: user can list added video recommendations | ||
Given command add is selected | ||
When command video is selected | ||
And video recommendation with title "TitleTest", description "DescriptionTest" and url "urlTest" is added | ||
And command list is selected | ||
And command edit is selected | ||
And command video is selected | ||
And title "TitleTest" is entered | ||
And field to edit "5" is entered | ||
And tag "eka" is entered | ||
And command search tags is selected | ||
And field to edit "eka" is entered | ||
And command list videos is selected | ||
Then app lists a recommendation with title "TitleTest", description "DescriptionTest" and url "urlTest" | ||
|
||
Scenario: user can list all recommendations when video is added | ||
Given command add is selected | ||
When command video is selected | ||
And video recommendation with title "TitleTest", description "DescriptionTest" and url "urlTest" is added | ||
And command list is selected | ||
And command list all is selected | ||
Then app lists a recommendation with title "TitleTest", description "DescriptionTest" and url "urlTest" | ||
|
||
Scenario: user can list all recommendations | ||
Given command add is selected | ||
When command book is selected | ||
And book recommendation with author "AuthorTest", title "TitleTest", description "DescriptionTest", isbn "isbnTest" and page count "10" is added | ||
And command list is selected | ||
And command list all is selected | ||
Then app lists a recommendation with author "AuthorTest", title "TitleTest", description "DescriptionTest", isbn "isbnTest", and page count "10" | ||
|
||
|
||
Scenario: user can list added blog recommendations | ||
Given command add is selected | ||
When command blog is selected | ||
And blog recommendation with title "TitleTest", author "AuthorTest", description "DescriptionTest" and url "www.blog.fi" is added | ||
And command list is selected | ||
And command edit is selected | ||
And command blog is selected | ||
And title "TitleTest" is entered | ||
And field to edit "5" is entered | ||
And tag "eka" is entered | ||
And command search tags is selected | ||
And field to edit "eka" is entered | ||
And command list blogs is selected | ||
Then app lists a recommendation with title "TitleTest", author "AuthorTest", description "DescriptionTest" and url "www.blog.fi" | ||
|
||
Scenario: user can list added podcast recommendations | ||
Given command add is selected | ||
When command podcast is selected | ||
And podcast recommendation with title "TitleTest", name "TestName", author "AuthorTest" and description "DescriptionTest" is added | ||
And command list is selected | ||
And command edit is selected | ||
And command podcast is selected | ||
And title "TitleTest" is entered | ||
And field to edit "5" is entered | ||
And tag "eka" is entered | ||
And command search tags is selected | ||
And field to edit "eka" is entered | ||
And command list podcasts is selected | ||
Then app lists a podcast recommendation with title "TitleTest", name "TestName", author "AuthorTest" and description "DescriptionTest" |