From 57526577b3e13d0ca49e7f0624be1c511efffaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 15:59:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E5=8F=A3=E9=A1=B5=E5=86=85=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=AE=8C=E6=95=B4=E7=BB=84=E4=BB=B6=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...dRenderCompleteNavigationComponentTest.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldRenderCompleteNavigationComponentTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldRenderCompleteNavigationComponentTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldRenderCompleteNavigationComponentTest.php new file mode 100644 index 0000000..1363885 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldRenderCompleteNavigationComponentTest.php @@ -0,0 +1,36 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_jump_links_should_render_complete_navigation_component(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-links"', $html); + $this->assertStringContainsString('data-role="po-page-jump-prefix"', $html); + $this->assertStringContainsString('页内导航:', $html); + $this->assertStringContainsString('data-role="po-page-jump-note"', $html); + $this->assertStringContainsString('仅用于页内快速跳转,不会改变当前筛选状态;', $html); + } +}