Sha256: 219fcf756a8f6005ae31fb48596d93a16a8ec8ff05f6b84fb0924223459d8547

Contents?: true

Size: 746 Bytes

Versions: 2

Compression:

Stored size: 746 Bytes

Contents

require 'test_helper'

module Workarea
  decorate Storefront::ReviewSystemTest, with: :one_theme do
    def test_showing_reviews_on_browse_page
      skip("Review stars removed from product summary")
      create_review(product_id: product.id, rating: 4)
      category = create_category(product_ids: [product.id])

      visit storefront.category_path(category)
      assert(page.has_content?('4.0 out of 5 stars'))
    end

    def test_showing_reviews_on_search_results
      skip("Review stars removed from product summary")
      create_product(name: 'Another Test')
      create_review(product_id: product.id, rating: 4)

      visit storefront.search_path(q: 'test')
      assert(page.has_content?('4.0 out of 5 stars'))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-one_theme-1.3.1 test/system/workarea/storefront/review_system_test.decorator
workarea-one_theme-1.3.0 test/system/workarea/storefront/review_system_test.decorator