mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-20 04:59:16 +00:00
Update orders_spec to work with Selenium
This commit is contained in:
committed by
luisramos0
parent
98a5b40aec
commit
a988fad2db
@@ -156,7 +156,9 @@ feature "Order Management", js: true do
|
||||
expect(Spree::LineItem.find_by_id(item2.id)).to be nil
|
||||
|
||||
# Cancelling the order
|
||||
click_link(I18n.t(:cancel_order))
|
||||
accept_alert do
|
||||
click_link(I18n.t(:cancel_order))
|
||||
end
|
||||
expect(page).to have_content I18n.t(:orders_show_cancelled)
|
||||
expect(order.reload).to be_canceled
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user