it('can create a user', function (): void { Notification::fake(); $tenant = createTenant(); livewire(UsersRelationManager::class, [ 'ownerRecord' => $tenant, 'pageClass' => EditTenant::class, ]) ->assertTableActionExists('create') ->mountTableAction(CreateAction::class) ->setTableActionData([ 'name' => fake()->name(), 'email' => $email = fake()->email(), ]) ->callMountedTableAction() ->assertHasNoTableActionErrors() ->assertSuccessful(); $user = User::query()->firstWhere(compact('email')); Notification::assertSentTo($user, WelcomeNotification::class);});