From a3965c3d652a97bb59670da90de0e6805a15245d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Sat, 31 Jul 2021 13:27:17 +0200 Subject: [PATCH] Removing credit card test --- .../ClientPortal/Gateways/Mollie/CreditCardTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php index fabd139f7f00..fd0bad760aa1 100644 --- a/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php @@ -117,4 +117,17 @@ class CreditCardTest extends DuskTestCase ->assertSee('This payment method can be can saved for future use, once you complete your first transaction. Don\'t forget to check "Store credit card details" during payment process.'); }); } + + 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.'); + }); + } }