uloncl's avatar

dusk mailing form test cant select correct element

public function forgotPasswordTest(): void
{
    $this->browse(function (Browser $browser) {
        $browser->visit('/https://laravel-student.test/forgot-password')->type('@email_input', '[email protected]')->click("@send_email > button");
    });
}

its just a simple test to test the forgotten password form but i get the error no such element: Unable to locate element: {"method":"css selector","selector":"body [dusk="email_input"]"} even though the test input field for the email in the form has dusk="email_input" on it so idk why its not finding it i shouldnt need to put the full element selector path to it right?

0 likes
1 reply

Please or to participate in this conversation.