Credit card: Pay with saved card
This commit is contained in:
parent
f6ee61d985
commit
fc2094b951
1 changed files with 14 additions and 0 deletions
|
|
@ -77,6 +77,20 @@ class CreditCardTest extends DuskTestCase
|
|||
});
|
||||
}
|
||||
|
||||
public function testPayWithSavedCreditCard()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visitRoute('client.invoices.index')
|
||||
->click('@pay-now')
|
||||
->click('@pay-now-dropdown')
|
||||
->clickLink('Credit Card')
|
||||
->click('.toggle-payment-with-token')
|
||||
->click('#pay-now')
|
||||
->waitForText('Details of the payment', 60);
|
||||
});
|
||||
}
|
||||
|
||||
public function testAddingCreditCardStandalone()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue