Sha256: fe1515c3fe61d7e44426d73db2a8c4d27e979d58c11164096dd165f0fbc8ee00

Contents?: true

Size: 1.19 KB

Versions: 62

Compression:

Stored size: 1.19 KB

Contents

require 'test_helper'

module Workarea
  module Admin
    class SearchSettingsSystemTest < SystemTest
      include Admin::IntegrationTest

      def test_administrating_settings
        visit admin.search_settings_path

        click_link t('workarea.admin.search_settings.show.synonyms.title')
        fill_in 'synonyms', with: 'ben, foo'

        click_link t('workarea.admin.search_settings.show.filters.title')
        fill_in 'terms_facets_list', with: 'color, size, material'

        click_link t('workarea.admin.search_settings.show.boosts.title')
        fill_in 'boosts[name]', with: '3'
        fill_in 'boosts[description]', with: '0.5'
        click_button 'save_settings'

        click_link t('workarea.admin.search_settings.show.synonyms.title')
        assert_equal('ben, foo', find_field('synonyms').value)

        click_link t('workarea.admin.search_settings.show.filters.title')
        assert_equal('color, size, material', find_field('terms_facets_list').value)

        click_link t('workarea.admin.search_settings.show.boosts.title')
        assert_equal('3', find_field('boosts[name]').value)
        assert_equal('0.5', find_field('boosts[description]').value)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.4.27 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.5.4 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.26 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.5.3 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.25 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.5.2 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.24 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.5.1 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.23 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.22 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.5.0 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.21 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.5.0.beta.1 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.20 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.19 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.18 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.17 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.16 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.15 test/system/workarea/admin/search_settings_system_test.rb
workarea-admin-3.4.14 test/system/workarea/admin/search_settings_system_test.rb