Skip to content

Commit

Permalink
Stop using Capybara in a deprecated way (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored Oct 6, 2022
1 parent c728f1e commit 37d3d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/features/grouped_results_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
it 'displays breadcrumbs only for component parents' do
visit search_catalog_path q: 'alpha omega', group: 'true'
within first('.breadcrumb-links') do
expect(page).not_to have_link(/Alpha/)
expect(page).to have_link 'National Library of Medicine. History of Medicine Division'
expect(page).to have_link count: 1 # Only one link is in the .breadcrumb-links
end
expect(page).to have_css '.breadcrumb-links a', text: /Series/
end
Expand Down

0 comments on commit 37d3d5a

Please sign in to comment.