Test paying with ACH

This commit is contained in:
Benjamin Beganović 2021-08-27 19:45:59 +02:00
parent 3b22fc5e17
commit a89f5a8fc0

View File

@ -63,4 +63,18 @@ class ACHTest extends DuskTestCase
->assertSee('Added payment method.'); ->assertSee('Added payment method.');
}); });
} }
public function testPayingWithExistingACH()
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.invoices.index')
->click('@pay-now')
->press('Pay Now')
->clickLink('Bank Transfer')
->click('.toggle-payment-with-token')
->press('Pay Now')
->waitForText('Details of the payment', 60);
});
}
} }