Logo: Relish

  1. Sign in

Project: Blacklight

Bookmarks

  • @bookmarks

In order to collect documents
As a user
I want to bookmark documents

Scenarios
Given
I am logged in as "user1"
Then
I should see "Welcome user1!"
When
I am on the home page
Then
I should see "Your Bookmarks"
When
I follow "Your Bookmarks"
Then
I should be on the bookmarks page
And
I should see a stylesheet
No Bookmarks
Given
I am logged in as "user1"
When
I go to the bookmarks page
Then
I should see "You have no bookmarks"
Bookmarks not logged in
When
I go to the bookmarks page
Then
I should see "Please log in to manage and view your bookmarks."
User Has Bookmarks
Given
I am logged in as "user1"
And
"user1" has bookmarked an item with title "foo bar"
When
I go to the bookmarks page
Then
I should see "Your Bookmarks"
And
I should see "foo bar"
Deleting a Bookmark
Given
I am logged in as "user1"
And
"user1" has bookmarked an item with title "foo bar"
And
I am on the bookmarks page
Then
I should see "remove"
When
I follow "remove"
Then
I should see "Successfully removed bookmark."
Clearing Bookmarks
Given
I am logged in as "user1"
And
"user1" has bookmarked an item with title "foo bar"
And
"user1" has bookmarked an item with title "boo baz"
And
I am on the bookmarks page
Then
I should see "Clear Bookmarks"
When
I follow "Clear Bookmarks"
Then
I should see "Cleared your bookmarks."
And
I should see "You have no bookmarks"
Adding and removing a bookmark from search results
Given
I am logged in as "user1"
When
I am on the home page
And
I fill in "q" with "book"
And
I press "search"
When
I press "Bookmark"
Then
I should see "Successfully added bookmark."
And
I fill in "q" with "book"
And
I press "search"
Then
I press "Remove bookmark"
And
I should see "Successfully removed bookmark."
Adding and deleting bookmark from show page
Given
I am logged in as "user1"
When
I am on the document page for id 2007020969
Then
I should see a "Bookmark" button
And
I press "Bookmark"
And
I should see a "Remove bookmark" button
And
I press "Remove bookmark"
And
I should see "Successfully removed bookmark"
Adding bookmarks from Folder
Given
I am logged in as "user1"
And
I have record 2007020969 in my folder
And
I have record 2008308175 in my folder
And
I follow "Selected Items"
And
I press "Add to Bookmarks"
Then
I should see "Successfully added bookmarks."
Adding bookmark from Folder
Given
I am logged in as "user1"
And
I have record 2007020969 in my folder
And
I follow "Selected Items"
And
I press "Add to Bookmarks"
Then
I should see "Successfully added bookmarks."

Last published about 5 years ago by jronallo.