Gateways: Checkout.com: Credit card: Paying with saved credit card

This commit is contained in:
Benjamin Beganović 2021-07-07 15:56:20 +02:00
parent 4ac0788da0
commit e922751ad2

View File

@ -85,4 +85,18 @@ class CreditCardTest extends DuskTestCase
->assertSee('4242');
});
}
public function testPayWithSavedCreditCard()
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.invoices.index')
->click('@pay-now')
->press('Pay Now')
->clickLink('Credit Card')
->click('.toggle-payment-with-token')
->click('#pay-now-with-token')
->waitForText('Details of the payment', 60);
});
}
}