diff --git a/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php b/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php index 9de9e9736bff..5867f8329f35 100644 --- a/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php +++ b/tests/Browser/ClientPortal/Gateways/GoCardless/ACHTest.php @@ -27,4 +27,16 @@ class ACHTest extends DuskTestCase ->auth(); }); } + + public function testPayingWithNoPreauthorizedIsntPossible() + { + $this->browse(function (Browser $browser) { + $browser + ->visitRoute('client.invoices.index') + ->click('@pay-now') + ->press('Pay Now') + ->clickLink('Bank Transfer') + ->assertSee('To pay with a bank account, first you have to add it as payment method.'); + }); + } }