mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 22:14:33 -04:00
Pay with new bank account & save for future
This commit is contained in:
parent
895e93bf04
commit
ce8b2c76a1
@ -77,4 +77,24 @@ class SEPATest extends DuskTestCase
|
|||||||
->waitForText('Details of the payment', 60);
|
->waitForText('Details of the payment', 60);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testPayingWithNewSEPABankAccountAndSaveForFuture(): void
|
||||||
|
{
|
||||||
|
$this->browse(function (Browser $browser) {
|
||||||
|
$browser
|
||||||
|
->visitRoute('client.invoices.index')
|
||||||
|
->click('@pay-now')
|
||||||
|
->click('@pay-now-dropdown')
|
||||||
|
->clickLink('SEPA Direct Debit')
|
||||||
|
->type('#sepa-name', 'John Doe')
|
||||||
|
->type('#sepa-email-address', 'test@invoiceninja.com')
|
||||||
|
->withinFrame('iframe', function (Browser $browser) {
|
||||||
|
$browser->type('iban', 'DE89370400440532013000');
|
||||||
|
})
|
||||||
|
->check('#sepa-mandate-acceptance', true)
|
||||||
|
->radio('#proxy_is_default', true)
|
||||||
|
->click('#pay-now')
|
||||||
|
->waitForText('Details of the payment', 60);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user