Gateways: Authorize.net: Credit card: Pay with saved card
This commit is contained in:
parent
a913c2d9d0
commit
a5ed8e41d0
1 changed files with 14 additions and 0 deletions
|
|
@ -74,4 +74,18 @@ class CreditCardTest extends DuskTestCase
|
|||
->assertSee('0027');
|
||||
});
|
||||
}
|
||||
|
||||
public function testPayWithSavedCard()
|
||||
{
|
||||
$this->browse(function (Browser $browser) {
|
||||
$browser
|
||||
->visitRoute('client.invoices.index')
|
||||
->click('@pay-now')
|
||||
->press('Pay Now')
|
||||
->clickLink('Credit Card')
|
||||
->click('.toggle-payment-with-token')
|
||||
->press('Pay Now')
|
||||
->waitForText('Details of the payment', 60);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue