Update cart_spec to work with Selenium

This commit is contained in:
Rob Harrington
2018-06-01 09:42:50 +10:00
committed by luisramos0
parent bba8b2020c
commit 2b48b4ee18

View File

@@ -154,7 +154,9 @@ feature "full-page cart", js: true do
visit spree.cart_path
variant.update_attributes! on_hand: 2
fill_in "order_line_items_attributes_0_quantity", with: '4'
accept_alert do
fill_in "order_line_items_attributes_0_quantity", with: '4'
end
click_button 'Update'
expect(page).to have_content "Insufficient stock available, only 2 remaining"