diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 76f3ed3..5c06cfe 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -666,7 +666,7 @@ @endif
- 摘要导航: + 摘要导航: 已付无回执 对账不一致 可同步 diff --git a/tests/Feature/AdminPlatformOrderSummaryJumpPrefixShouldHaveAriaLabelTest.php b/tests/Feature/AdminPlatformOrderSummaryJumpPrefixShouldHaveAriaLabelTest.php new file mode 100644 index 0000000..94d4f63 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderSummaryJumpPrefixShouldHaveAriaLabelTest.php @@ -0,0 +1,32 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_order_summary_jump_prefix_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-prefix" aria-label="平台订单摘要导航前缀"', $html); + } +}