2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2020-05-19 11:44:12 +00:00
|
|
|
require 'rails_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'Search', type: :system, authenticated: true, searchindex: true do
|
|
|
|
before do
|
|
|
|
configure_elasticsearch(required: true, rebuild: true)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'shows default widgets' do
|
|
|
|
fill_in id: 'global-search', with: '"Welcome"'
|
|
|
|
|
|
|
|
click_on 'Show Search Details'
|
|
|
|
|
|
|
|
within '#navigation .tasks a[data-key=Search]' do
|
|
|
|
expect(page).to have_text '"Welcome"'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|