From b7cb4aa910cc7c748121c68dbaad8fcb3c1a5b80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 10:31:57 +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=AF=BC=E8=88=AA=E5=9B=9E=E6=91=98=E8=A6=81=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 +- ...mpLinksNoteShouldLinkBackToSummaryTest.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToSummaryTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 3769713..5e9ae2e 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1203,7 +1203,7 @@ 摘要概览 筛选条件 导出 - 快速定位只负责跳转到工具组,不会直接执行动作;如需先调整范围,可先回到筛选条件 + 快速定位只负责跳转到工具组,不会直接执行批量动作;如需先调整范围,可先回到筛选条件,或回到摘要概览 批量同步 批量BMPA 批量仅生效 diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToSummaryTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToSummaryTest.php new file mode 100644 index 0000000..96e2de4 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToSummaryTest.php @@ -0,0 +1,35 @@ +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_summary(): 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-summary"', $html); + $this->assertStringContainsString('href="#po-summary-cards"', $html); + $this->assertStringContainsString('回到摘要概览', $html); + $this->assertStringContainsString('title="先回摘要概览查看当前盘面"', $html); + } +}