Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SCA card number #5553

Merged
merged 1 commit into from
Jul 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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