docs(dashboard): 平台订单漏斗增加口径说明并加护栏

This commit is contained in:
萝卜
2026-03-17 19:19:41 +08:00
parent 1725eae6b2
commit 78424a213d
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminDashboardPlatformOrderFunnelShouldExplainMetricsTest 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_dashboard_should_render_platform_order_funnel_explanation_text(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin');
$res->assertOk();
$res->assertSee('口径说明');
$res->assertSee('待支付=unpaid+pending');
$res->assertSee('待生效=paid+pending+unsynced');
$res->assertSee('可同步=paid+activated+unsynced+非失败');
}
}