From b07b56c76f3df76efcfcab30e22ae84b0cbbd3cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 12 Jul 2021 13:39:03 +0200 Subject: [PATCH] Gateways: WePay: Credit card: Adding credit card standalone --- .../Gateways/WePay/CreditCardTest.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/WePay/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/WePay/CreditCardTest.php index bc4629ced389..062c1b411549 100644 --- a/tests/Browser/ClientPortal/Gateways/WePay/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/WePay/CreditCardTest.php @@ -102,4 +102,22 @@ class CreditCardTest extends DuskTestCase ->assertSee('Payment method has been successfully removed.'); }); } + + public function testAddingCreditCardStandalone() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.payment_methods.index') + ->press('Add Payment Method') + ->clickLink('Credit Card') + ->waitForText('Credit Card') + ->type('#cardholder_name', 'John Doe') + ->type('card-number', '4003830171874018') + ->type('card-holders-name', 'John Doe') + ->type('.expiry', '12/28') + ->type('cvc', '100') + ->press('Add Payment Method') + ->waitForText(4018, 60); + }); + } }