chore(css): 治理提示块脚注样式组件化 + 护栏

This commit is contained in:
萝卜
2026-03-14 02:01:19 +00:00
parent cb1ea8c38c
commit 6c8d78d981
3 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminGovernanceBlockFootnoteUsesCssComponentTest 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_platform_order_index_sop_footnote_should_use_governance_block_footnote_class(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
// SOP 卡的两条说明应使用治理提示块的脚注样式类,避免 inline/散落工具类扩散
$res->assertSee('governance-block-footnote', false);
}
}