diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index db0c93a..8bae9d8 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -103,12 +103,12 @@
平台订单
这里是总台视角的平台收费主链骨架页,当前阶段先承接套餐订购 / 续费 / 生效跟踪。本页先提供可访问列表、基础筛选与摘要卡,后续再补详情、导出、支付记录与退款轨迹。(建议运营日常优先使用:待支付 / 待生效 / 可同步 / 同步失败 / 续费缺订阅 等治理集合)
-
- 快捷筛选 - 筛选条件 - 摘要概览 - 工具区 - 订单列表 +
diff --git a/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveDataRoleAndAriaLabelTest.php b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveDataRoleAndAriaLabelTest.php new file mode 100644 index 0000000..16e0eb6 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveDataRoleAndAriaLabelTest.php @@ -0,0 +1,37 @@ +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_data_role_and_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-page-jump-links" aria-label="平台订单页内导航"', $html); + $this->assertStringContainsString('data-role="po-page-jump-quick-filters" aria-label="定位到快捷筛选"', $html); + $this->assertStringContainsString('data-role="po-page-jump-filters" aria-label="定位到筛选条件"', $html); + $this->assertStringContainsString('data-role="po-page-jump-summary" aria-label="定位到摘要概览"', $html); + $this->assertStringContainsString('data-role="po-page-jump-tools" aria-label="定位到工具区"', $html); + $this->assertStringContainsString('data-role="po-page-jump-list" aria-label="定位到订单列表"', $html); + } +}