Skip to content

Commit

Permalink
Update test to search for something in a searched field
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Aug 30, 2024
1 parent d937919 commit fac72b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/features/backend_lookup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@

scenario 'lookup should return additional results on the results page' do
visit search_catalog_path(
q: 'statement',
q: 'Lorem aute dolor',
f: { access_facet: ['Online'] },
search_field: 'search'
)

within '.zero-results' do
expect(page).to have_css('a', text: /All fields > statement/)
expect(page).to have_css('span', text: /finds 1 results/)
expect(page).to have_css('a', text: /All fields > Lorem aute dolor/)
expect(page).to have_css('span', text: /finds 2 results/)
end
end
end

0 comments on commit fac72b1

Please sign in to comment.