diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index efb980b..92f926c 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -120,7 +120,11 @@

已支付 / 已生效

-
{{ $summaryStats['paid_orders'] ?? 0 }} / {{ $summaryStats['activated_orders'] ?? 0 }}
+
+ {{ $summaryStats['paid_orders'] ?? 0 }} + / + {{ $summaryStats['activated_orders'] ?? 0 }} +

已同步 / 未同步

diff --git a/tests/Feature/AdminPlatformOrderPaidActivatedSummaryCardLinksTest.php b/tests/Feature/AdminPlatformOrderPaidActivatedSummaryCardLinksTest.php new file mode 100644 index 0000000..b12861f --- /dev/null +++ b/tests/Feature/AdminPlatformOrderPaidActivatedSummaryCardLinksTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_shows_paid_and_activated_summary_card_links(): void + { + $this->loginAsPlatformAdmin(); + + $this->get('/admin/platform-orders') + ->assertOk() + ->assertSee('已支付 / 已生效') + ->assertSee('payment_status=paid') + ->assertSee('status=activated'); + } +}