chore(admin-ui): system settings page uses page header and list card

This commit is contained in:
萝卜
2026-03-16 03:51:05 +08:00
parent 0d4cca42b1
commit 2930e8cd22
2 changed files with 121 additions and 67 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminSettingsSystemPageShouldUsePageHeaderAndListCardTest 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_settings_system_page_should_use_page_header_and_list_card(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/settings/system');
$res->assertOk();
// 护栏:系统配置页应使用 PageHeader 与 ListCard保持总台管理风格统一。
$res->assertSee('page-header', false);
$res->assertSee('page-header-title', false);
$res->assertSee('page-header-subtitle', false);
$res->assertSee('page-header-actions', false);
$res->assertSee('page-header-meta', false);
$res->assertSee('list-card', false);
$res->assertSee('list-card-header', false);
$res->assertSee('list-card-body', false);
$res->assertSee('list-card-table', false);
}
}