Sha256: ccaeada8191902692787e1ef9b683bf593b9704d3388c401289859e33d4a5a5e
Contents?: true
Size: 744 Bytes
Versions: 2
Compression:
Stored size: 744 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 "can add and remove parts" do visit spree.admin_product_path(tshirt) click_on "Parts" fill_in "searchtext", with: mug.name click_on "Search" click_on "Select" expect(page).to have_link('Delete') expect(tshirt.reload.parts).to eq([mug.master]) click_on 'Delete', wait: 30 expect(page).not_to have_link('Delete') expect(tshirt.reload.parts).to eq([]) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_product_assembly-1.4.0 | spec/features/admin/parts_spec.rb |
solidus_product_assembly-1.3.0 | spec/features/admin/parts_spec.rb |