mercredi 3 janvier 2018

Laravel dusk doesn't see vuejs selectors

Hey guys I am trying to run laravel dusk with vuejs and I got an error

1) Tests\Browser\UserCreateTest::testAdminCanCreateAnotherUser Facebook\WebDriver\Exception\TimeOutException: Waited 5 seconds for selector [.users].

This is my test

$this->browse(function (Browser $browser) {
            $user = User::find(1);
            $browser
                ->loginAs($user)
                ->visit('/users');

            $browser->waitFor('.users');

In Vue template, I have div with class users.

Does anybody know what's wrong with it?

Aucun commentaire:

Enregistrer un commentaire