fix(admin): 顶部导航布局 CSS 口径对齐(admin.css)

This commit is contained in:
萝卜
2026-03-15 17:39:42 +08:00
parent b2fe4abbac
commit 71ad4becb9
2 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminLayoutTopNavShouldNotUseLegacyGridTest extends TestCase
{
use RefreshDatabase;
protected function loginAsPlatformAdmin(): void
{
$this->seed();
$this->post('/admin/login', [
'email' => 'platform.admin@demo.local',
'password' => 'Platform@123456',
])->assertRedirect('/admin');
}
public function test_admin_dashboard_should_use_topnav_layout_class(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('layout-topnav', $html);
}
}