Gateways: Authorize.net: Credit card: Pay with saved card

This commit is contained in:
Benjamin Beganović 2021-07-08 13:52:47 +02:00
parent a913c2d9d0
commit a5ed8e41d0

View File

@ -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);
});
}
}