From e044d2b25d46ef10cb763870b6bfa4cc466355a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 13:10:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E9=A1=B5=E5=86=85=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=9B=9E=E8=AE=A2=E5=8D=95=E5=88=97=E8=A1=A8=E5=85=A5?= =?UTF-8?q?=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 +- ...exPageJumpNoteShouldLinkBackToListTest.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToListTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index dc159ff..9e9d6a3 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/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToListTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToListTest.php new file mode 100644 index 0000000..015c1e2 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToListTest.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_list(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-back-to-list"', $html); + $this->assertStringContainsString('href="#po-list-card"', $html); + $this->assertStringContainsString('aria-label="回到订单列表"', $html); + $this->assertStringContainsString('回到订单列表', $html); + } +}