From c181dbf878514406f27c933e0fb8f7fcf5b615e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 06:10:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E5=B9=B3=E5=8F=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=B7=A5=E5=85=B7=E5=8C=BA=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 +- ...exToolGridIntroShouldHaveAriaLabelTest.php | 32 +++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 5dd92b2..859339d 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1197,7 +1197,7 @@ @endphp
-
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
+
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
导出
diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..a4c52fb --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridIntroShouldHaveAriaLabelTest.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_tool_grid_intro_should_have_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-grid-intro" aria-label="平台订单工具区说明"', $html); + } +}