Standalone credit card authorization test

This commit is contained in:
Benjamin Beganović 2021-07-31 13:19:22 +02:00
parent d37841afa7
commit 1ae9cde8ff

View File

@ -106,4 +106,15 @@ class CreditCardTest extends DuskTestCase
->waitForText('Details of the payment', 60);
});
}
public function testAddingPaymentMethodShouldntBePossible()
{
$this->browse(function (Browser $browser) {
$browser
->visitRoute('client.payment_methods.index')
->press('Add Payment Method')
->clickLink('Credit Card')
->assertSee('This payment method can be can saved for future use, once you complete your first transaction. Don\'t forget to check "Store credit card details" during payment process.');
});
}
}