Sha256: 42eeb43993047f9885e2f6f506c7b56b0a6b9b8ed93d8050587f571f700c6d4c

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 Bytes

Contents

require "test_helper"

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

      setup :product

      def product
        @product ||= create_product(
          badges: ["Custom Badge"]
        )
      end

      def test_adding_a_custom_badge
        visit admin.catalog_product_path(@product)

        click_link "Attributes"

        fill_in "product[badges_list]", with: "Custom Badge, New Badge"

        click_button "save_product"
        assert(page.has_content?("Success"))
        assert_current_path(admin.catalog_product_path(@product))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
workarea-product_badges-1.4.1 test/system/workarea/admin/product_badges_system_test.rb
workarea-product_badges-1.4.0 test/system/workarea/admin/product_badges_system_test.rb
workarea-product_badges-1.3.3 test/system/workarea/admin/product_badges_system_test.rb
workarea-product_badges-1.3.2 test/system/workarea/admin/product_badges_system_test.rb