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); + } +}