From d8816869b3380653136a5001d4d5414aff94edf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 19:07:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=BC=BA=E6=91=98=E8=A6=81=E5=8C=BA?= =?UTF-8?q?=E5=BF=AB=E9=80=9F=E5=AF=BC=E8=88=AA=E8=AF=AD=E4=B9=89=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 8 ++--- ...ummaryJumpLinksShouldHaveAriaLabelTest.php | 35 +++++++++++++++++++ 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveAriaLabelTest.php diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index e6264db..a8c5cf1 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -666,10 +666,10 @@ @endif
- 已付无回执 - 对账不一致 - 可同步 - 续费缺订阅 + 已付无回执 + 对账不一致 + 可同步 + 续费缺订阅
diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..00c7ced --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpLinksShouldHaveAriaLabelTest.php @@ -0,0 +1,35 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_links_should_have_aria_label(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-summary-jump-paid-no-receipt" aria-label="定位到已付无回执摘要卡"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-syncable" aria-label="定位到可同步摘要卡"', $html); + $this->assertStringContainsString('data-role="po-summary-jump-renewal-missing-sub" aria-label="定位到续费缺订阅摘要卡"', $html); + } +}