diff --git a/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php index 714739a3e924..fabd139f7f00 100644 --- a/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php @@ -106,4 +106,15 @@ class CreditCardTest extends DuskTestCase ->waitForText('Details of the payment', 60); }); } + + public function testAddingPaymentMethodShouldntBePossible() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.payment_methods.index') + ->press('Add Payment Method') + ->clickLink('Credit Card') + ->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.'); + }); + } }