统一总台仪表盘已付无回执辅助文案口径
This commit is contained in:
@@ -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 . '%)',
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminDashboardPaidNoReceiptAriaLabelShouldUsePaidNoReceiptPhraseTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
protected function loginAsPlatformAdmin(): void
|
||||
{
|
||||
$this->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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user