how to verify placeholder laravel dusk
Hi, I want to verify placeholder with Laravel dusk, This is my approach and it is not working. Anyone can help me ?
Thanks
<input type="text" id="first_name" placeholder="first name">
->assertSee('input[placeholder="#first_name"]','first name');
Not sure if it will work but I see that you've made a few mistakes. The selector is not valid and you are using the wrong assertion.
->assertSeeIn('input#first_name[placeholder]','first name');
// or
->assertSeeIn('input#first_name','first name');
Then try following:
->assertSeee('placeholder="first name"');
thanks , but it didn't work
Is that located in a blade or in the vue (something else) file?
Then this has to work:
->assertAttribute('#first_name', 'placeholder', 'first name');
Please or to participate in this conversation.