From f2b74e55e62e01bf1aa6cec9996970c1b3803752 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 10:45:42 +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=91=98=E8=A6=81=E8=AF=B4=E6=98=8E=E5=BD=92?= =?UTF-8?q?=E5=B1=9E=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...eShouldStayInsidePaidNoReceiptCardTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldStayInsidePaidNoReceiptCardTest.php diff --git a/tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldStayInsidePaidNoReceiptCardTest.php b/tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldStayInsidePaidNoReceiptCardTest.php new file mode 100644 index 0000000..8a561c2 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldStayInsidePaidNoReceiptCardTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_paid_no_receipt_summary_card_footnote_should_stay_inside_card(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/已付无回执订单[\s\S]*?data-role="po-summary-paid-no-receipt-footnote"[\s\S]*?收费闭环优先:建议先处理该集合,再推进同步与批量动作。/u', $html); + } +}