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