mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Gateways: WePay: Credit card: Pay with new card and save for future use
This commit is contained in:
parent
d8d2aae5e2
commit
8fe01cec86
@ -54,4 +54,25 @@ 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')
|
||||
->type('card-number', '4003830171874018')
|
||||
->type('card-holders-name', 'John Doe')
|
||||
->type('.expiry', '12/28')
|
||||
->type('cvc', '100')
|
||||
->radio('#proxy_is_default', true)
|
||||
->press('Pay Now')
|
||||
->waitForText('Details of the payment', 60)
|
||||
->visitRoute('client.payment_methods.index')
|
||||
->clickLink('View')
|
||||
->assertSee('4018');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user