Skip to content

Commit

Permalink
Merge pull request #2617 from sul-dlss/have-selector
Browse files Browse the repository at this point in the history
Fix have_selector syntax.
  • Loading branch information
jcoyne authored Oct 26, 2024
2 parents 1079cfc + a33dd9e commit 56d5218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/components/search_tips_component_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
subject(:rendered) { Capybara::Node::Simple.new(render_inline(described_class.new)) }

it 'displays a title with a subheading' do
expect(rendered).to have_selector('h2.modal-title'), text: 'Search tips'
expect(rendered).to have_selector('h3'), text: 'Refine your search'
expect(rendered).to have_selector('h2.modal-title', text: 'Search tips')
expect(rendered).to have_selector('h3', text: 'Refine your search')
end

it 'includes search tips text' do
Expand All @@ -16,6 +16,6 @@
end

it 'includes a close button' do
expect(rendered).to have_selector('button.btn-outline-primary span'), text: 'Close'
expect(rendered).to have_selector('button.btn-outline-primary span', text: 'Close')
end
end

0 comments on commit 56d5218

Please sign in to comment.