mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
update spec
This commit is contained in:
@@ -73,7 +73,7 @@ feature '
|
||||
redirect_url: "https://www.stripe.com/authorize"
|
||||
end
|
||||
|
||||
it "fails to add a payment due to card error" do
|
||||
it "adds the payment and it is in the requires_authorization state" do
|
||||
login_as_admin_and_visit spree.new_admin_order_payment_path order
|
||||
|
||||
fill_in "payment_amount", with: order.total.to_s
|
||||
@@ -81,7 +81,7 @@ feature '
|
||||
click_button "Update"
|
||||
|
||||
expect(page).to have_link "StripeSCA"
|
||||
expect(page).to have_content "PENDING"
|
||||
expect(page).to have_content "AUTHORIZATION REQUIRED"
|
||||
expect(OrderPaymentFinder.new(order.reload).last_payment.state).to eq "requires_authorization"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user