1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Test adding bank account

This commit is contained in:
Benjamin Beganović 2021-08-27 19:45:45 +02:00
parent ab90db5295
commit 3b22fc5e17
2 changed files with 21 additions and 1 deletions

View File

@ -4297,7 +4297,10 @@ $LANG = array(
'lang_Latvian' => 'Latvian',
'expiry_date' => 'Expiry date',
'cardholder_name' => 'Card holder name',
'account_type' => 'Account type',
'locality' => 'Locality',
'checking' => 'Checking',
'savings' => 'Savings',
);
return $LANG;

View File

@ -46,4 +46,21 @@ class ACHTest extends DuskTestCase
$company->settings = $settings;
$company->save();
}
public function testAddingBankAccount()
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.payment_methods.index')
->press('Add Payment Method')
->clickLink('Bank Account')
->type('#account-holder-name', 'John Doe')
->type('#account-number', '1000000000')
->type('#routing-number', '011000015')
->type('#billing-region', 'AL')
->type('#billing-postal-code', '12345')
->press('Add Payment Method')
->assertSee('Added payment method.');
});
}
}