Having issues with Test using laravel-modules and FilamentPHP

Hi all,
I am trying to run this test
test('can register User', function () {
    livewire(CreateUser::class)
        ->fillForm([
            'name' => 'John Ford',
            'email' => 'test@test.com',
            'password' => 'password',
            'passwordConfirmation' => 'password'
        ])
        ->call('create')
        ->assertHasNoErrors(['name', 'email', 'password', 'passwordConfirmation']);

    $this->assertDatabaseHas('users',[
        'name' => 'John Doe',
        'email' => 'test@test.com',
    ]);
});
to test a user registering

I am getting this error if i try the UserCreate class
Modules\Auth\tests\Feature\RegistrationTest > can register User                                                                                                      ViewException   
  Route [filament.admin.resources.users.index] not defined. (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php) (View: /Users/craigvonchamier/Herd/TAC/vendor/filament/filament/resources/views/components/page/index.blade.php)


and this if i use the UserClass
  FAILED  Modules\Auth\tests\Feature\RegistrationTest > can register User                                                                                         ComponentNotFoundException   
  Unable to find component: [Modules\User\Models\User]

Anyone any ideas please?

Thanks in advance!
Was this page helpful?