mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update cart_spec to work with Selenium
This commit is contained in:
committed by
luisramos0
parent
bba8b2020c
commit
2b48b4ee18
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user