From f53128c4f5adf30b1322b8b733af69a7176f5c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 11:53:53 +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=E5=89=8D=E7=BC=80?= =?UTF-8?q?=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 1 + ...geJumpLinksShouldHaveVisiblePrefixTest.php | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveVisiblePrefixTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 8bae9d8..c583bd6 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -104,6 +104,7 @@
平台订单
这里是总台视角的平台收费主链骨架页,当前阶段先承接套餐订购 / 续费 / 生效跟踪。本页先提供可访问列表、基础筛选与摘要卡,后续再补详情、导出、支付记录与退款轨迹。(建议运营日常优先使用:待支付 / 待生效 / 可同步 / 同步失败 / 续费缺订阅 等治理集合)
+ 页内导航: 快捷筛选 筛选条件 摘要概览 diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveVisiblePrefixTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveVisiblePrefixTest.php new file mode 100644 index 0000000..e564ee3 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveVisiblePrefixTest.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_visible_prefix(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-prefix"', $html); + $this->assertStringContainsString('页内导航:', $html); + } +}