diff --git a/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php b/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php index 9233afb15cd2..714739a3e924 100644 --- a/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php +++ b/tests/Browser/ClientPortal/Gateways/Mollie/CreditCardTest.php @@ -92,4 +92,18 @@ class CreditCardTest extends DuskTestCase ->assertSee('4242'); }); } + + public function testPayWithSavedCreditCard() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.invoices.index') + ->click('@pay-now') + ->press('Pay Now') + ->clickLink('Credit Card') + ->click('.toggle-payment-with-token') + ->press('Pay Now') + ->waitForText('Details of the payment', 60); + }); + } }