From c40c27038be7dc6cc5f0651e607e2d4305fafdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 7 Jul 2021 15:58:23 +0200 Subject: [PATCH] Gateways: Checkout.com: Credit card: Removing credit card --- .../Gateways/CheckoutCom/CreditCardTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/CheckoutCom/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/CheckoutCom/CreditCardTest.php index 9d58be4c775b..8d01decde6f3 100644 --- a/tests/Browser/ClientPortal/Gateways/CheckoutCom/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/CheckoutCom/CreditCardTest.php @@ -99,4 +99,17 @@ class CreditCardTest extends DuskTestCase ->waitForText('Details of the payment', 60); }); } + + public function testRemoveCreditCard() + { + $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.'); + }); + } }