From 9782092a45d6badbfb7f515e043552a77bcebff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Thu, 8 Jul 2021 13:53:50 +0200 Subject: [PATCH] Gateways: Authorize.net: Credit card: Remove credit card --- .../Gateways/AuthorizeNet/CreditCardTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php index 0da63c93754a..4ebdf57a147f 100644 --- a/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/AuthorizeNet/CreditCardTest.php @@ -88,4 +88,17 @@ class CreditCardTest extends DuskTestCase ->waitForText('Details of the payment', 60); }); } + + public function testRemoveCard() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.payment_methods.index') + ->clickLink('View') + ->press('Remove Payment Method') + ->waitForText('Confirmation') + ->click('@confirm-payment-removal') + ->assertSee('Payment method has been successfully removed.'); + }); + } }