42 lines
1.2 KiB
PHP
42 lines
1.2 KiB
PHP
<?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);
|
||
}
|
||
}
|