Sha256: c091fccb17f5ed577d3c85a48cc17011275770a43e2c87dd2ea3ec21b8d582f6

Contents?: true

Size: 642 Bytes

Versions: 62

Compression:

Stored size: 642 Bytes

Contents

require 'test_helper'

module Workarea
  module Storefront
    class SearchPerformanceTest < Workarea::PerformanceTest

      setup :setup_catalog

      def setup_catalog
        name_prefix = %w(foo bar foobar)
        Sidekiq::Callbacks.disable do
          @products =
            Array.new(Workarea.config.per_page) do |i|
              create_complex_product(name: "#{name_prefix[i % 3]} #{i}")
            end
        end

        BulkIndexProducts.perform_by_models(@products)
      end

      def test_search_with_complex_products
        get storefront.search_path(q: 'foo')
        assert(response.ok?)
      end
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-storefront-3.5.27 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.26 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.45 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.25 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.23 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.44 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.22 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.43 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.21 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.42 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.20 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.41 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.19 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.40 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.18 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.39 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.17 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.38 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.16 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.37 test/performance/workarea/storefront/search_performance_test.rb