Sha256: 1b28020d93484043c0fe16151721a105b3ac3ef0cd08f29544d9847636596ee8

Contents?: true

Size: 1.61 KB

Versions: 11

Compression:

Stored size: 1.61 KB

Contents

@saved_searches
Feature: Saved Searches Page
  As a user
  In order see searches I've saved and reuse them
  I want a page that shows my saved searches
    
  Scenario: Menu Link
    Given I am logged in as "user1"
    When I am on the home page
    Then I should see "Saved Searches"
    When I follow "Saved Searches"
    Then I should be on the saved searches page
    And I should see a stylesheet
  
  Scenario: No Searches
    Given I am logged in as "user1"
    Given no previous searches
    When I go to the saved searches page
    Then I should see "You have no saved searches"
    
  # Scenario: Saved Searches not logged in
  #   When I go to the saved searches page
  #   Then I should see "Sign in"
    
  Scenario: Saved Searches
    Given I am logged in as "user1"
    And "user1" has saved a search with term "book"
    When I go to the saved searches page
    Then I should see "Your saved searches"
    And I should see "book"
    
  Scenario: Deleting a Saved Search
    Given I am logged in as "user1"
    And "user1" has saved a search with term "book"
    And I am on the saved searches page
    Then I should see a "delete" button
    When I press "delete"
    Then I should see "Successfully removed that saved search."

  Scenario: Clearing Saved Searches
    Given I am logged in as "user1"
    And "user1" has saved a search with term "book"
    And "user1" has saved a search with term "dang"
    And I am on the saved searches page
    Then I should see "Clear Saved Searches"
    When I follow "Clear Saved Searches"
    Then I should see "Cleared your saved searches."
    And I should see "You have no saved searches"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-4.3.0 features/saved_searches.feature
blacklight-4.2.2 features/saved_searches.feature
blacklight-4.2.1 features/saved_searches.feature
blacklight-4.2.0 features/saved_searches.feature
blacklight-4.1.0 test_support/features/saved_searches.feature
blacklight-4.0.1 test_support/features/saved_searches.feature
blacklight-4.0.0 test_support/features/saved_searches.feature
blacklight-4.0.0.rc2 test_support/features/saved_searches.feature
blacklight-4.0.0.rc1 test_support/features/saved_searches.feature
blacklight-4.0.0.pre7 test_support/features/saved_searches.feature
blacklight-4.0.0.pre6 test_support/features/saved_searches.feature