refactor(platform-orders): add governance hint to index subtitle

This commit is contained in:
萝卜
2026-03-16 12:01:23 +08:00
parent a5edeb04ef
commit 0230e48878
2 changed files with 37 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexSubtitleShouldMentionGovernanceSetsTest 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_index_subtitle_should_mention_governance_sets(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
// 运营导向:标题副文案应提示关键治理集合,减少“页面上来不知道从哪下手”的认知成本。
$res->assertSee('待支付', false);
$res->assertSee('待生效', false);
$res->assertSee('可同步', false);
$res->assertSee('同步失败', false);
$res->assertSee('续费缺订阅', false);
}
}