implement user profile settings

This commit is contained in:
2026-05-01 01:07:58 +03:30
parent ff86141fd6
commit bcf9b9e47c
9 changed files with 186 additions and 21 deletions

View File

@@ -2,12 +2,21 @@
use App\Livewire\Settings\Profile;
use App\Models\User;
use Illuminate\Foundation\Testing\LazilyRefreshDatabase;
use Livewire\Livewire;
uses(LazilyRefreshDatabase::class);
test('profile page is displayed', function () {
$this->actingAs($user = User::factory()->create());
$this->get('/settings/profile')->assertOk();
$this->get('/settings/profile')
->assertOk()
->assertSee('Profile')
->assertSee('Name')
->assertSee('Email')
->assertDontSee('Repository')
->assertDontSee('Documentation');
});
test('profile information can be updated', function () {
@@ -73,4 +82,4 @@ test('correct password must be provided to delete account', function () {
$response->assertHasErrors(['password']);
expect($user->fresh())->not->toBeNull();
});
});