From 2637d6cef96f32e56e70e15ff9d76ef3a3f58985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 23:59:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E4=BB=AA=E8=A1=A8=E7=9B=98?= =?UTF-8?q?=E5=B7=B2=E4=BB=98=E6=97=A0=E5=9B=9E=E6=89=A7=E6=B2=BB=E7=90=86?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=80=BB=E6=8A=A4=E6=A0=8F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...vernanceHelpShouldRemainConsistentTest.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tests/Feature/AdminDashboardPaidNoReceiptGovernanceHelpShouldRemainConsistentTest.php 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); + } +}