From dbc639defe49b4a600461f779adb10fdc8cf30eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 12:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=B9=B3=E5=8F=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E5=86=85=E5=AF=BC=E8=88=AA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=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 + ...exPageJumpLinksShouldHaveUsageNoteTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveUsageNoteTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index c583bd6..a248f37 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -111,6 +111,7 @@ 工具区 订单列表 +
仅用于页内快速跳转,不会改变当前筛选状态。
diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveUsageNoteTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveUsageNoteTest.php new file mode 100644 index 0000000..af52444 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveUsageNoteTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_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-page-jump-note"', $html); + $this->assertStringContainsString('仅用于页内快速跳转,不会改变当前筛选状态。', $html); + } +}