Update orders_spec to work with Selenium

This commit is contained in:
Rob Harrington
2018-06-02 18:57:24 +10:00
committed by luisramos0
parent 98a5b40aec
commit a988fad2db

View File

@@ -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