From 90aec15333aac16f70332855802fbc4ec301135d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 04:39:50 +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=E8=AF=B4=E6=98=8E=E8=AF=AD=E4=B9=89=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 2 +- ...ReceiptFootnoteShouldHaveAriaLabelTest.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderToolsPaidNoReceiptFootnoteShouldHaveAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 6649045..1fb72bd 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1110,7 +1110,7 @@ 'label' => '取消只看可同步(先治理)', ]) -
收费闭环优先:先补回执,再推进同步。
+
收费闭环优先:先补回执,再推进同步。
@endif diff --git a/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptFootnoteShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptFootnoteShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..f1daece --- /dev/null +++ b/tests/Feature/AdminPlatformOrderToolsPaidNoReceiptFootnoteShouldHaveAriaLabelTest.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_footnote_should_have_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?syncable_only=1&receipt_status=none'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-paid-no-receipt-footnote" aria-label="已付无回执治理优先级说明"', $html); + } +}