From 23832fe47bd2050b49d6e032ff2b3027be41d311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 13:23:01 +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=E6=91=98=E8=A6=81=E6=A6=82=E8=A7=88=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 +- ...ageJumpNoteShouldLinkBackToSummaryTest.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToSummaryTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 9e9d6a3..b2423d1 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/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToSummaryTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToSummaryTest.php new file mode 100644 index 0000000..5f76528 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToSummaryTest.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_summary(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-back-to-summary"', $html); + $this->assertStringContainsString('href="#po-summary-cards"', $html); + $this->assertStringContainsString('aria-label="回到摘要概览"', $html); + $this->assertStringContainsString('回到摘要概览', $html); + } +}