From a33dd9e43ae7f6d4d90c4155c8ec50e5c78f9645 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Fri, 25 Oct 2024 16:17:31 -0700 Subject: [PATCH] Fix have_selector syntax. --- spec/components/search_tips_component_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/components/search_tips_component_spec.rb b/spec/components/search_tips_component_spec.rb index 48d58fc06..c302ccd96 100644 --- a/spec/components/search_tips_component_spec.rb +++ b/spec/components/search_tips_component_spec.rb @@ -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 @@ -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