Skip to content

Commit

Permalink
Merge pull request #43 from sul-dlss/bookmarks-text-update
Browse files Browse the repository at this point in the history
Change Bookmark/In Bookmarks text
  • Loading branch information
Jessie Keck committed May 8, 2014
2 parents 1e82bc7 + 3ab052e commit 65b612c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/locales/searchworks.en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
en:
blacklight:

search:
bookmarks:
present: "Selected"
absent: "Select"
27 changes: 27 additions & 0 deletions spec/features/blacklight_customizations/bookmarks_text_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require 'spec_helper'

feature "Bookmarks Select/UnSelect Text" do
before do
visit root_path
fill_in "q", with: ''
click_button 'search'
end

scenario "should have bookmarks text as select", js: true do
within first("div.documentHeader") do
within "label.toggle_bookmark" do
expect(page).to have_css("span", text: "Select")
end
end
end

scenario "should have bookmarks text as selected", js: true do
within first("div.documentHeader") do
within "label.toggle_bookmark" do
find(:css, '#toggle_bookmark_1').set(true)
expect(page).to have_css("span", text: "Selected")
end
end
end

end

0 comments on commit 65b612c

Please sign in to comment.