Tests: Paying without method preauthorized

This commit is contained in:
Benjamin Beganović 2021-10-04 13:44:57 +02:00
parent cd3d0efb7a
commit 9b52ad39e9

View File

@ -27,4 +27,16 @@ class ACHTest extends DuskTestCase
->auth(); ->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.');
});
}
} }