From aeb0e2697692bdb7e5f4c4586ad8274efa1da69c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 04:17:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E5=9B=9E=E6=89=A7=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E8=AF=B4=E6=98=8E=E5=AE=B9=E5=99=A8=E5=BD=92=E5=B1=9E?= =?UTF-8?q?=E6=8A=A4=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...sHintLinkShouldStayInsideHintBlockTest.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderFiltersReceiptStatusHintLinkShouldStayInsideHintBlockTest.php diff --git a/tests/Feature/AdminPlatformOrderFiltersReceiptStatusHintLinkShouldStayInsideHintBlockTest.php b/tests/Feature/AdminPlatformOrderFiltersReceiptStatusHintLinkShouldStayInsideHintBlockTest.php new file mode 100644 index 0000000..4cae3e6 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderFiltersReceiptStatusHintLinkShouldStayInsideHintBlockTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_receipt_status_hint_link_should_stay_inside_hint_block(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertMatchesRegularExpression('/data-role="po-receipt-status-broad-none-hint"[\s\S]*?data-role="po-receipt-status-broad-none-go-paid-no-receipt"/u', $html); + } +}