feature: main page

This commit is contained in:
antv
2026-07-06 15:06:14 +07:00
parent 11a6568717
commit 64027eb8f2
2 changed files with 23 additions and 11 deletions
+15 -6
View File
@@ -11,9 +11,17 @@ class UserDashboardLayoutTest extends TestCase
public function test_dashboard_renders_two_column_layout_for_desktop(): void
{
$user = \App\Models\User::factory()->create([
'email' => 'admin@runsystem.net',
'name' => 'System Admin',
$user = \App\Models\User::create([
'msnv' => 5001,
'name' => 'System Admin',
'mail' => 'admin@runsystem.net',
'pass' => md5('password'),
'departments' => 1,
'role' => \App\Models\User::ROLE_ADMIN,
'status' => \App\Models\User::STATUS_ACTIVE,
'card' => 10,
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
]);
$this->actingAs($user);
@@ -23,9 +31,10 @@ class UserDashboardLayoutTest extends TestCase
$response->assertOk();
$response->assertSee('Thanks gần đây', false);
$response->assertSee('Bảng xếp hạng', false);
$response->assertSee('xl:flex-row', false);
$response->assertSee('xl:w-[380px]', false);
$response->assertSee('xl:flex-shrink-0', false);
$response->assertSee('lg:flex-row', false);
$response->assertSee('flex-1 min-w-0', false);
$response->assertSee('lg:w-[32%]', false);
$response->assertSee('lg:min-w-[340px]', false);
$response->assertSee('lg:max-w-[400px]', false);
}
}