feature: main page

This commit is contained in:
antv
2026-07-06 14:37:32 +07:00
parent b1beed4ae6
commit 11a6568717
3 changed files with 100 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class UserDashboardLayoutTest extends TestCase
{
use RefreshDatabase;
public function test_dashboard_renders_two_column_layout_for_desktop(): void
{
$user = \App\Models\User::factory()->create([
'email' => 'admin@runsystem.net',
'name' => 'System Admin',
]);
$this->actingAs($user);
$response = $this->get('/my-page');
$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('flex-1 min-w-0', false);
}
}