From de312919a612f6c2ab14b2a0012d1af6f8766661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 20:03:08 +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=E4=BD=BF=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 1 + ...ummaryJumpLinksShouldHaveUsageNoteTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveUsageNoteTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 5c06cfe..0913ce2 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -667,6 +667,7 @@
摘要导航: + 仅用于摘要区快速定位,不会改变当前筛选状态。 已付无回执 对账不一致 可同步 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveUsageNoteTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveUsageNoteTest.php new file mode 100644 index 0000000..649ac18 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveUsageNoteTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_links_should_have_usage_note(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-note"', $html); + $this->assertStringContainsString('仅用于摘要区快速定位,不会改变当前筛选状态。', $html); + } +}