From 0783548ff417f2b564e6d8b7e40d8bcd6003c5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 18:39:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E9=BD=90=E9=A1=B5=E5=86=85=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E5=AE=8C=E6=95=B4=E5=B1=82=E6=8A=A4=E6=A0=8F=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...houldRenderCompleteNavigationLayerTest.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpShouldRenderCompleteNavigationLayerTest.php diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpShouldRenderCompleteNavigationLayerTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpShouldRenderCompleteNavigationLayerTest.php new file mode 100644 index 0000000..757b6bb --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpShouldRenderCompleteNavigationLayerTest.php @@ -0,0 +1,39 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_page_jump_should_render_complete_navigation_layer(): 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-quick-filters"', $html); + $this->assertStringContainsString('data-role="po-page-jump-filters"', $html); + $this->assertStringContainsString('data-role="po-page-jump-summary"', $html); + $this->assertStringContainsString('data-role="po-page-jump-tools"', $html); + $this->assertStringContainsString('data-role="po-page-jump-list"', $html); + $this->assertStringContainsString('data-role="po-page-jump-top"', $html); + $this->assertStringContainsString('data-role="po-page-jump-note"', $html); + } +}