Skip to content

Commit

Permalink
Add test for bookmarks text change
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristo4 committed May 8, 2014
1 parent 398e9ec commit 3ab052e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/locales/searchworks.en.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
en:
blacklight:
application_name: 'SearchWorks'

search:
bookmarks:
Expand Down
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 3ab052e

Please sign in to comment.