Skip to content

Commit

Permalink
Remove "search in no types" scenario in search feature specs
Browse files Browse the repository at this point in the history
It's not needed for Bootstrap
  • Loading branch information
dmarcoux committed Aug 28, 2019
1 parent a1c9d5a commit fb2fa34
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/api/spec/features/webui/search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,27 +137,6 @@
expect(page).to have_selector('#search-results', count: 0)
end

scenario 'search in no types' do
skip_if_bootstrap # This specs doesn't make sense in the Bootstrap UI since we search for packages, projects or both.
apache2
reindex_for_search

visit search_path
page.evaluate_script('$.fx.off = true;') # Needed to disable javascript animations that can end in not checking the checkboxes properly

fill_in 'search_input', with: 'awesome'
click_button 'Advanced'
uncheck 'project'
uncheck 'package'
click_button 'Search'

within('#flash') do
expect(page).to have_text('Your search did not return any results.')
end

expect(page).to have_selector('#search-results', count: 0)
end

scenario 'search in no fields' do
apache2
reindex_for_search
Expand Down

0 comments on commit fb2fa34

Please sign in to comment.