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); + } +}