Sha256: 78b351c0c58d46220ab0375ac835259ad0b98c8987bd093f3bdc61d9d93f67c9
Contents?: true
Size: 787 Bytes
Versions: 3
Compression:
Stored size: 787 Bytes
Contents
require 'spec_helper' describe "Orders", type: :feature, js: true do stub_authorization! let(:order) { create(:order_with_line_items) } let(:line_item) { order.line_items.first } let(:bundle) { line_item.product } let(:parts) { (1..3).map { create(:variant) } } before do bundle.parts << [parts] line_item.update_attributes!(quantity: 3) order.reload.create_proposed_shipments order.finalize! end it "allows admin to edit product bundle" do visit spree.edit_admin_order_path(order) within("table.product-bundles") do find(".edit-line-item").click fill_in "quantity", :with => "2" find(".save-line-item").click sleep(1) # avoid odd "cannot rollback - no transaction is active: rollback transaction" end end end
Version data entries
3 entries across 3 versions & 2 rubygems