update spec

This commit is contained in:
Andy Brett
2021-06-13 16:51:52 -07:00
parent 3e32abe64f
commit d3cca04703

View File

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