From 68a3acee7ee3ca9cc4ded9e6530a83a32bce6aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 11:09:14 +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=E5=8D=A1=E8=AF=AD=E4=B9=89?= =?UTF-8?q?=E9=94=9A=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 2 +- ...CardShouldHaveDataRoleAndAriaLabelTest.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderReceiptSummaryCardShouldHaveDataRoleAndAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 8f34ceb..896019a 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -840,7 +840,7 @@ ]) -
+

已付无回执订单

@include('admin.platform_orders._summary_metric_link', [ diff --git a/tests/Feature/AdminPlatformOrderReceiptSummaryCardShouldHaveDataRoleAndAriaLabelTest.php b/tests/Feature/AdminPlatformOrderReceiptSummaryCardShouldHaveDataRoleAndAriaLabelTest.php new file mode 100644 index 0000000..a9c8817 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderReceiptSummaryCardShouldHaveDataRoleAndAriaLabelTest.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_should_have_data_role_and_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-card-paid-no-receipt" aria-label="已付无回执摘要卡"', $html); + } +}