diff --git a/tests/Feature/AdminDashboardPaidNoReceiptGovernanceHelpShouldRemainConsistentTest.php b/tests/Feature/AdminDashboardPaidNoReceiptGovernanceHelpShouldRemainConsistentTest.php new file mode 100644 index 0000000..d45ca6f --- /dev/null +++ b/tests/Feature/AdminDashboardPaidNoReceiptGovernanceHelpShouldRemainConsistentTest.php @@ -0,0 +1,34 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_dashboard_paid_no_receipt_governance_help_should_remain_consistent(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('已付无回执=已支付但缺 payment_receipts', $html); + $this->assertStringContainsString('已付无回执', $html); + $this->assertStringContainsString('data-role="dashboard-po-quicklink-paid-no-receipt"', $html); + } +}