From 8b33d5d3bb44baf56fd3f15b10b6dffb3d728288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 23:43:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=91=98=E8=A6=81=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=9B=9E=E9=A1=B6=E9=83=A8=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 +- ...SummaryJumpNoteShouldLinkBackToTopTest.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToTopTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 4ddb527..b4b63d6 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -667,7 +667,7 @@
摘要导航: - 说明:仅用于摘要区快速定位,不会改变当前筛选状态;如需重新查看摘要整体,可先回到摘要区;如需重新调整范围,可先回到筛选条件;如需继续执行动作,可回到工具区 + 说明:仅用于摘要区快速定位,不会改变当前筛选状态;如需重新查看页头概述,可回到顶部;如需重新查看摘要整体,可先回到摘要区;如需重新调整范围,可先回到筛选条件;如需继续执行动作,可回到工具区 摘要导航只负责定位到关键摘要卡,不会触发治理动作。 已付无回执 对账不一致 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToTopTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToTopTest.php new file mode 100644 index 0000000..bcd8573 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToTopTest.php @@ -0,0 +1,35 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_note_should_link_back_to_top(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-back-to-top"', $html); + $this->assertStringContainsString('href="#po-page-top"', $html); + $this->assertStringContainsString('aria-label="回到页面顶部"', $html); + $this->assertStringContainsString('title="回到顶部查看页头概述"', $html); + } +}