Skip to content

Commit

Permalink
Update SCA card number and mark tests as pending
Browse files Browse the repository at this point in the history
  • Loading branch information
viroulep committed Jul 1, 2020
1 parent 3f69d71 commit f6f324e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion WcaOnRails/spec/factories/credit_cards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
cvc { "314" }

trait :sca_card do
number { "4000000000003220" }
number { "4000002760003184" }
end

trait :expired do
Expand Down
4 changes: 4 additions & 0 deletions WcaOnRails/spec/features/sca_payments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,14 @@
end

scenario "user pays with a 3D secure enabled card", js: true do
# See https://github.com/thewca/worldcubeassociation.org/issues/5554
pending("support for a more recent js driver")
fill_confirm_and_expect(card, "test-source-authorize-3ds", "Your payment was successful")
end

it "user fails to complete the 3D secure challenge", js: true do
# See https://github.com/thewca/worldcubeassociation.org/issues/5554
pending("support for a more recent js driver")
fill_confirm_and_expect(card, "test-source-fail-3ds", "We are unable to authenticate your payment method")
end
end
Expand Down

0 comments on commit f6f324e

Please sign in to comment.