From 246b9303c0122ada597edb5027f1ed9ccd17aa99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 22:07:18 +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=E5=B7=A5=E5=85=B7=E5=8C=BA=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 +- ...mmaryJumpNoteShouldLinkBackToToolsTest.php | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToToolsTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 6b96859..8e4a864 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/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToToolsTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToToolsTest.php new file mode 100644 index 0000000..557d1c6 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpNoteShouldLinkBackToToolsTest.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_tools(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-back-to-tools"', $html); + $this->assertStringContainsString('href="#po-tools-grid"', $html); + $this->assertStringContainsString('aria-label="回到工具区"', $html); + $this->assertStringContainsString('title="回到工具区执行导出或批量动作"', $html); + } +}