Tests: Payment with saved credit card

This commit is contained in:
Benjamin Beganović 2021-08-18 17:59:12 +02:00
parent c10a636272
commit aaf84e0e3b

View File

@ -78,4 +78,18 @@ class CreditCardTest extends DuskTestCase
->assertSee('4242');
});
}
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);
});
}
}