From 5234f5d7e4eefc9b89ff3a8c5525a24b4417a904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 11:00:55 +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=E8=AF=AD?= =?UTF-8?q?=E4=B9=89=E6=A0=87=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 +- ...aryCardFootnoteShouldHaveAriaLabelTest.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldHaveAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 3698d3c..8f34ceb 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -850,7 +850,7 @@ ])
已支付且无 payment_summary / payment_receipts,优先进入补回执治理集合
-
收费闭环优先:建议先处理该集合,再推进同步与批量动作。
+
收费闭环优先:建议先处理该集合,再推进同步与批量动作。
@include('admin.platform_orders._summary_text_link', [ 'role' => 'po-summary-link-view-receipt-orders', diff --git a/tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..6126e27 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderReceiptSummaryCardFootnoteShouldHaveAriaLabelTest.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_have_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-paid-no-receipt-footnote" aria-label="已付无回执摘要优先级说明"', $html); + } +}