From 566970347fd1f24aa59d10a2d6b08f77627c174d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 11:50:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=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=E8=AF=AD=E4=B9=89?= =?UTF-8?q?=E9=94=9A=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 12 +++--- ...inksShouldHaveDataRoleAndAriaLabelTest.php | 37 +++++++++++++++++++ 2 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexPageJumpLinksShouldHaveDataRoleAndAriaLabelTest.php 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); + } +}