diff --git a/resources/views/admin/dashboard.blade.php b/resources/views/admin/dashboard.blade.php index 95516c2..cb408cf 100644 --- a/resources/views/admin/dashboard.blade.php +++ b/resources/views/admin/dashboard.blade.php @@ -442,7 +442,7 @@ 'rowRole' => 'dashboard-po-no-receipt-row', 'barRole' => 'dashboard-po-no-receipt-bar', 'href' => $platformOrdersQuickLinks['paid_no_receipt'], - 'ariaLabel' => '进入无回执订单集合', + 'ariaLabel' => '进入已付无回执订单集合', 'label' => '无回执', 'pct' => $poNoReceiptPct, 'title' => $poNoReceipt . ' / ' . $poTotal . '(' . $poNoReceiptPct . '%)', @@ -757,7 +757,7 @@ 'rowRole' => 'ops-risk-no-receipt-row', 'barRole' => 'ops-risk-no-receipt-bar', 'href' => $platformOrdersQuickLinks['paid_no_receipt'], - 'ariaLabel' => '进入无回执订单集合', + 'ariaLabel' => '进入已付无回执订单集合', 'label' => '无回执', 'pct' => $pctRiskNoReceipt, 'title' => $riskNoReceipt . ' / ' . $poTotalForOps . '(' . $pctRiskNoReceipt . '%)', diff --git a/tests/Feature/AdminDashboardPaidNoReceiptAriaLabelShouldUsePaidNoReceiptPhraseTest.php b/tests/Feature/AdminDashboardPaidNoReceiptAriaLabelShouldUsePaidNoReceiptPhraseTest.php new file mode 100644 index 0000000..3f110c1 --- /dev/null +++ b/tests/Feature/AdminDashboardPaidNoReceiptAriaLabelShouldUsePaidNoReceiptPhraseTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_dashboard_paid_no_receipt_aria_label_should_use_paid_no_receipt_phrase(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('aria-label="进入已付无回执订单集合"', $html); + $this->assertStringNotContainsString('aria-label="进入无回执订单集合"', $html); + } +}