dimanche 6 janvier 2019

testing input type date through laravel dusk

Trying to test following input element

<input name="birthdate" id="#birthdate" class="input" type="date">

Through Laravel Dusk I've tried

$browser->type('birthdate', now()->toDateString())

end even

->type('birthdate', '1980-01-03')

enter image description here

No data is inserted and even Submit button is not pressed. Dump reveals that I will remain on the form withou submitting.

Thanks

Aucun commentaire:

Enregistrer un commentaire