Changeset View
Changeset View
Standalone View
Standalone View
src/tests/Browser/Pages/PaymentStripe.php
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | class PaymentStripe extends Page | ||||
* | * | ||||
* @param \Laravel\Dusk\Browser $browser The browser object | * @param \Laravel\Dusk\Browser $browser The browser object | ||||
* | * | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
public function submitValidCreditCard($browser) | public function submitValidCreditCard($browser) | ||||
{ | { | ||||
$browser->type('@name-input', 'Test') | $browser->type('@name-input', 'Test') | ||||
->type('@cardnumber-input', '4242424242424242') | ->typeSlowly('@cardnumber-input', '4242424242424242', 50) | ||||
->type('@cardexpiry-input', '12/' . (date('y') + 1)) | ->type('@cardexpiry-input', '12/' . (date('y') + 1)) | ||||
->type('@cardcvc-input', '123') | ->type('@cardcvc-input', '123') | ||||
->press('@submit-button'); | ->press('@submit-button'); | ||||
} | } | ||||
} | } |