diff --git a/spec/features/admin/payments_stripe_spec.rb b/spec/features/admin/payments_stripe_spec.rb index b07b049f0e..2bae8fe114 100644 --- a/spec/features/admin/payments_stripe_spec.rb +++ b/spec/features/admin/payments_stripe_spec.rb @@ -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