diff --git a/resources/views/admin/settings/system.blade.php b/resources/views/admin/settings/system.blade.php index f3cbf22..874c52e 100644 --- a/resources/views/admin/settings/system.blade.php +++ b/resources/views/admin/settings/system.blade.php @@ -4,80 +4,93 @@ @section('page_title', '系统配置') @section('content') -
-

系统配置已经从静态骨架切到数据库读取,当前已支持基础编辑、保存和缓存刷新。

-
当前系统配置列表已接入缓存读取。
-
当前配置分组数:{{ $groupedCount }}
+ @endforeach @endsection diff --git a/tests/Feature/AdminSettingsSystemPageShouldUsePageHeaderAndListCardTest.php b/tests/Feature/AdminSettingsSystemPageShouldUsePageHeaderAndListCardTest.php new file mode 100644 index 0000000..a603d6b --- /dev/null +++ b/tests/Feature/AdminSettingsSystemPageShouldUsePageHeaderAndListCardTest.php @@ -0,0 +1,41 @@ +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); + } +}