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