I am trying to go to the home page and click on my button
<a href="" id="createQuiz" class="crud-btn">createQuiz</a>
I made a test to do that
public function testExample()
{
$this->visit('/home')->click('createQuiz');
}
However when I run the test with
phpunit --filter quizCreation "tests\quizCreation"
I get the error ...quizWhiz/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/Interac tsWithPages.php:464
InvalidArgumentException: Could not find a link with a body, name, or ID attribute of [createQuiz].
via GustX