diff --git a/tests/Browser/ClientPortal/Gateways/Mollie/KBCTest.php b/tests/Browser/ClientPortal/Gateways/Mollie/KBCTest.php index a8ec810fe7d0..584f5a286885 100644 --- a/tests/Browser/ClientPortal/Gateways/Mollie/KBCTest.php +++ b/tests/Browser/ClientPortal/Gateways/Mollie/KBCTest.php @@ -37,4 +37,21 @@ class KBCTest extends DuskTestCase ->auth(); }); } + + public function testSuccessfulPayment(): void + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.invoices.index') + ->click('@pay-now') + ->press('Pay Now') + ->clickLink('Undefined.') + ->waitForText('Test profile') + ->press('CBC') + ->radio('final_state', 'paid') + ->press('Continue') + ->waitForText('Details of the payment') + ->assertSee('Completed'); + }); + } } \ No newline at end of file