Sha256: bd1fc2747cff8a0adb0d7c2817e1fbc0962bc759a8dd762165b57fa1d9f5fbef
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
require 'spec_helper' describe "Parts", type: :feature, js: true do stub_authorization! let!(:tshirt) { create(:product, :name => "T-Shirt") } let!(:mug) { create(:product, :name => "Mug") } before do visit spree.admin_product_path(mug) check "product_can_be_part" click_on "Update" end it "add and remove parts" do visit spree.admin_product_path(tshirt) click_on "Parts" fill_in "searchtext", with: mug.name click_on "Search" within("#search_hits") { click_on "Select" } page.should have_content(mug.sku) within("#product_parts") do find(".remove_admin_product_part_link").click end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_product_assembly-1.0.0 | spec/features/admin/parts_spec.rb |