From cd3c54c62dee826732fb46de365594d5d8c1baa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 03:11:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E5=B7=B2=E4=BB=98=E6=97=A0?= =?UTF-8?q?=E5=9B=9E=E6=89=A7=E6=B2=BB=E7=90=86=E7=BB=84=E4=BB=B6=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dRenderCompleteGovernanceComponentTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldRenderCompleteGovernanceComponentTest.php diff --git a/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldRenderCompleteGovernanceComponentTest.php b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldRenderCompleteGovernanceComponentTest.php new file mode 100644 index 0000000..d96931c --- /dev/null +++ b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptHintShouldRenderCompleteGovernanceComponentTest.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_tools_paid_no_receipt_hint_should_render_complete_governance_component(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?syncable_only=1&receipt_status=none'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/data-role="po-tools-paid-no-receipt-hint"[\s\S]*?已付无回执提示[\s\S]*?为保证收费闭环可治理,建议先补齐支付回执留痕,再执行批量同步订阅。[\s\S]*?定位到批量同步订阅工具[\s\S]*?切到有回执集合[\s\S]*?取消只看可同步(先治理)/u', $html); + } +}