get('/register'); $response ->assertOk() ->assertSeeVolt('pages.auth.register'); } public function test_new_users_can_register(): void { $component = Volt::test('pages.auth.register') ->set('name', 'Test User') ->set('email', 'test@example.com') ->set('password', 'password') ->set('password_confirmation', 'password'); $component->call('register'); $component->assertRedirect(route('dashboard', absolute: false)); $this->assertAuthenticated(); } }