From aebdaeb5ddb6ee40edb8a739b7b5b62557ba3a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 8 Jul 2021 14:06:24 +0200 Subject: [PATCH] Gateways: Authorize.net: Credit card: Add credit card standalone --- .../Gateways/AuthorizeNet/CreditCardTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php index 4ebdf57a147f..3a02c87a2733 100644 --- a/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php @@ -101,4 +101,22 @@ class CreditCardTest extends DuskTestCase ->assertSee('Payment method has been successfully removed.'); }); } + + public function testAddingCreditCardStandalone() + { + $this->markTestIncomplete("E00117 OTS Service Error 'Field validation error.'"); + + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.payment_methods.index') + ->press('Add Payment Method') + ->clickLink('Credit Card') + ->type('card-number', '4012888818888') + ->type('card-holders-name', 'John Doe') + ->type('.expiry', '12/28') + ->type('cvc', '900') + ->press('Add Payment Method') + ->waitForText('0027', 60); + }); + } }