diff --git a/tests/Browser/ClientPortal/Gateways/Mollie/BancontactTest.php b/tests/Browser/ClientPortal/Gateways/Mollie/BancontactTest.php index 9a2c536819..4133c7c493 100644 --- a/tests/Browser/ClientPortal/Gateways/Mollie/BancontactTest.php +++ b/tests/Browser/ClientPortal/Gateways/Mollie/BancontactTest.php @@ -17,7 +17,7 @@ use Laravel\Dusk\Browser; use Tests\DuskTestCase; use Tests\Browser\Pages\ClientPortal\Login; -class Bancontact extends DuskTestCase +class BancontactTest extends DuskTestCase { protected function setUp(): void { @@ -37,4 +37,20 @@ class Bancontact 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') + ->radio('final_state', 'paid') + ->press('Continue') + ->waitForText('Details of the payment') + ->assertSee('Completed'); + }); + } }