actingAs($this->user); $this ->get(route('profile')) ->assertSeeLivewire(UpdateProfileInformation::class) ->assertSeeLivewire(UpdatePassword::class); } public function test_profile_information_can_be_updated(): void { $this->actingAs($this->user); Livewire::test(UpdateProfileInformation::class) ->set('name', 'Test') ->set('email', 'test@example.com') ->call('submit') ->assertSuccessful(); $this->user->refresh(); $this->assertSame('Test', $this->user->name); $this->assertSame('test@example.com', $this->user->email); } }