From 0888be767261d7b6877de1100e10492d0fe28ea0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 10:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=B7=A5=E5=85=B7=E5=8C=BA?= =?UTF-8?q?=E5=9B=9E=E6=91=98=E8=A6=81=E6=A6=82=E8=A7=88=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 3 +- ...pLinksShouldIncludeSummaryShortcutTest.php | 36 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldIncludeSummaryShortcutTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index b4e42de..7241833 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -655,7 +655,7 @@ @endif -
+

平台订单总数

@@ -1199,6 +1199,7 @@
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作;也可使用上方快速定位导航直达目标工具组。
+ 摘要概览 筛选条件 导出 快速定位只负责跳转到工具组,不会直接执行动作;如需先调整范围,可先回到筛选条件 diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldIncludeSummaryShortcutTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldIncludeSummaryShortcutTest.php new file mode 100644 index 0000000..f3f4cb3 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldIncludeSummaryShortcutTest.php @@ -0,0 +1,36 @@ +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_include_summary_shortcut(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-cards"', $html); + $this->assertStringContainsString('data-role="po-tools-jump-summary"', $html); + $this->assertStringContainsString('aria-label="定位到订单摘要概览"', $html); + $this->assertStringContainsString('href="#po-summary-cards"', $html); + $this->assertStringContainsString('>摘要概览<', $html); + } +}