diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 834a035..c221834 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -111,7 +111,7 @@ 工具区 订单列表 -
仅用于页内快速跳转,不会改变当前筛选状态;如需重新查看页头概述,可回到顶部
+
仅用于页内快速跳转,不会改变当前筛选状态;如需重新查看页头概述,可回到顶部;如需继续执行动作,可回到工具区
diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToToolsTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToToolsTest.php new file mode 100644 index 0000000..8963d3e --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToToolsTest.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_page_jump_note_should_link_back_to_tools(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-back-to-tools"', $html); + $this->assertStringContainsString('href="#po-tools-grid"', $html); + $this->assertStringContainsString('aria-label="回到工具区"', $html); + $this->assertStringContainsString('回到工具区', $html); + } +}