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.4.27 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.4 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.26 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.3 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.25 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.2 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.24 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.1 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.23 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.22 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.0 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.21 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.5.0.beta.1 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.20 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.19 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.18 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.17 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.16 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.15 test/performance/workarea/storefront/search_performance_test.rb
workarea-storefront-3.4.14 test/performance/workarea/storefront/search_performance_test.rb