From 3b1ad55ec16d9e745963d361db626c343fa1fb40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 07:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E5=B7=A5=E5=85=B7=E5=8C=BA?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E5=AF=BC=E8=88=AA=E5=8A=A8=E4=BD=9C=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 | 12 +++--- ...ksShouldHaveAriaLabelForEachActionTest.php | 37 +++++++++++++++++++ 2 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveAriaLabelForEachActionTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 66706d3..3087622 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1199,12 +1199,12 @@
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
导出
diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveAriaLabelForEachActionTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveAriaLabelForEachActionTest.php new file mode 100644 index 0000000..97411ba --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveAriaLabelForEachActionTest.php @@ -0,0 +1,37 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tool_grid_jump_links_should_have_aria_label_for_each_action(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-jump-export" aria-label="定位到导出工具组"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-batch-activate" aria-label="定位到批量同步订阅工具组"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-batch-bmpa" aria-label="定位到批量标记支付并生效工具组"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-batch-mark-activated" aria-label="定位到批量仅标记为已生效工具组"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-clear-sync-errors" aria-label="定位到清理同步失败标记工具组"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-clear-bmpa-errors" aria-label="定位到清理批量BMPA失败标记工具组"', $html); + } +}