From 49a56bb6cc50b92ebc85034e7ef6e04359c56664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 08:39:48 +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=BF=AB=E9=80=9F=E5=AF=BC=E8=88=AA=E5=9B=9E=E7=AD=9B=E9=80=89?= =?UTF-8?q?=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 | 2 +- ...mpLinksNoteShouldLinkBackToFiltersTest.php | 34 +++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToFiltersTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index ae25b22..dacf1a3 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1200,7 +1200,7 @@
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作;也可使用上方快速定位导航直达目标工具组。
导出 - 快速定位只负责跳转到工具组,不会直接执行动作。 + 快速定位只负责跳转到工具组,不会直接执行动作;如需先调整范围,可先回到筛选条件 批量同步 批量BMPA 批量仅生效 diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToFiltersTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToFiltersTest.php new file mode 100644 index 0000000..5c212a0 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToFiltersTest.php @@ -0,0 +1,34 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tool_grid_jump_links_note_should_link_back_to_filters(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-grid-jump-links-go-filters"', $html); + $this->assertStringContainsString('href="#filters"', $html); + $this->assertStringContainsString('回到筛选条件', $html); + } +}