Credit card: Pay with saved card

This commit is contained in:
Benjamin Beganović 2021-08-15 16:26:00 +02:00
parent f6ee61d985
commit fc2094b951

View File

@ -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) {