diff --git a/spec/features/blacklight_customizations/bookmarks_path_spec.rb b/spec/features/blacklight_customizations/bookmarks_path_spec.rb index 8a3185fdd..73f86b5c9 100644 --- a/spec/features/blacklight_customizations/bookmarks_path_spec.rb +++ b/spec/features/blacklight_customizations/bookmarks_path_spec.rb @@ -20,7 +20,7 @@ within "#documents" do expect(page).to have_css("h3.index_title a", count: 2) end - within ".search-widgets" do + within ".sort-and-per-page" do expect(page).to have_css("a", text: "Cite 1 - 2") expect(page).to have_css("button", text: "Send 1 - 2") expect(page).to have_no_css("button#select_all-dropdown") diff --git a/spec/features/blacklight_customizations/facets_spec.rb b/spec/features/blacklight_customizations/facets_spec.rb index 79c5136b1..2bcbc95df 100644 --- a/spec/features/blacklight_customizations/facets_spec.rb +++ b/spec/features/blacklight_customizations/facets_spec.rb @@ -16,7 +16,7 @@ skip('Fails intermitently on Travis.') if ENV['CI'] visit blacklight_advanced_search_engine.advanced_search_path - click_link "Resource type" + click_button "Resource type" check "Book" click_button "advanced-search-submit" diff --git a/spec/features/bookmarking_items_spec.rb b/spec/features/bookmarking_items_spec.rb index 39739696b..e84dfdad9 100644 --- a/spec/features/bookmarking_items_spec.rb +++ b/spec/features/bookmarking_items_spec.rb @@ -34,7 +34,7 @@ within('.modal-dialog') do expect(page).to have_css('h4', text: 'MLA', count: 2) - click_link 'By citation format' + click_button 'By citation format' expect(page).to have_css('h4', text: 'MLA', count: 1) expect(page).to have_css('p.citation_style_MLA', count: 2) end