search_spec.rb 420 B

1234567891011121314151617
  1. require 'rails_helper'
  2. RSpec.describe 'Search', type: :system, authenticated: true, searchindex: true do
  3. before do
  4. configure_elasticsearch(required: true, rebuild: true)
  5. end
  6. it 'shows default widgets' do
  7. fill_in id: 'global-search', with: '"Welcome"'
  8. click_on 'Show Search Details'
  9. within '#navigation .tasks a[data-key=Search]' do
  10. expect(page).to have_text '"Welcome"'
  11. end
  12. end
  13. end