mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Gateways: Checkout.com: Credit card: Paying with new card and saving for future use
This commit is contained in:
parent
0f7fa134ea
commit
4ac0788da0
@ -44,7 +44,7 @@ class CreditCardTest extends DuskTestCase
|
||||
});
|
||||
}
|
||||
|
||||
public function testPayingWithNewCard()
|
||||
public function testPayWithNewCard()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
@ -62,4 +62,27 @@ class CreditCardTest extends DuskTestCase
|
||||
->waitForText('Details of the payment', 60);
|
||||
});
|
||||
}
|
||||
|
||||
public function testPayWithNewCardAndSaveForFutureUse()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visitRoute('client.invoices.index')
|
||||
->click('@pay-now')
|
||||
->press('Pay Now')
|
||||
->clickLink('Credit Card')
|
||||
->withinFrame('iframe', function (Browser $browser) {
|
||||
$browser
|
||||
->type('cardnumber', '4242424242424242')
|
||||
->type('exp-date', '04/22')
|
||||
->type('cvc', '100');
|
||||
})
|
||||
->radio('#proxy_is_default', true)
|
||||
->press('#pay-button')
|
||||
->waitForText('Details of the payment', 60)
|
||||
->visitRoute('client.payment_methods.index')
|
||||
->clickLink('View')
|
||||
->assertSee('4242');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user