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:
parent
ab90db5295
commit
3b22fc5e17
@ -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;
|
||||
|
@ -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.');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user