Sha256: 50492e12caaeff7649e86508ce671ae179dae9497492f333cb811f67fc908ec1
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true 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" } expect(page).to have_content(mug.sku) within("#product_parts") do find(".remove_admin_product_part_link").click end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_product_assembly-1.2.0 | spec/features/admin/parts_spec.rb |
solidus_product_assembly-1.1.0 | spec/features/admin/parts_spec.rb |