From 9be5de3e890fd832e9b64a47feae5be9fce1ba35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 7 Jul 2021 14:27:50 +0200 Subject: [PATCH] Gateways: Stripe: ACH: Removing ACH account --- .../ClientPortal/Gateways/Stripe/ACHTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/Stripe/ACHTest.php b/tests/Browser/ClientPortal/Gateways/Stripe/ACHTest.php index b5ea3799c0a6..8d5a982a959d 100644 --- a/tests/Browser/ClientPortal/Gateways/Stripe/ACHTest.php +++ b/tests/Browser/ClientPortal/Gateways/Stripe/ACHTest.php @@ -85,4 +85,17 @@ class ACHTest extends DuskTestCase ->waitForText('Details of the payment', 60); }); } + + public function testRemoveACHAccount() + { + $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.'); + }); + } }