统一仪表盘已付无回执可见文案口径
This commit is contained in:
@@ -443,7 +443,7 @@
|
|||||||
'barRole' => 'dashboard-po-no-receipt-bar',
|
'barRole' => 'dashboard-po-no-receipt-bar',
|
||||||
'href' => $platformOrdersQuickLinks['paid_no_receipt'],
|
'href' => $platformOrdersQuickLinks['paid_no_receipt'],
|
||||||
'ariaLabel' => '进入已付无回执订单集合',
|
'ariaLabel' => '进入已付无回执订单集合',
|
||||||
'label' => '无回执',
|
'label' => '已付无回执',
|
||||||
'pct' => $poNoReceiptPct,
|
'pct' => $poNoReceiptPct,
|
||||||
'title' => $poNoReceipt . ' / ' . $poTotal . '(' . $poNoReceiptPct . '%)',
|
'title' => $poNoReceipt . ' / ' . $poTotal . '(' . $poNoReceiptPct . '%)',
|
||||||
'value' => $poNoReceiptPct . '%(' . $poNoReceipt . ')',
|
'value' => $poNoReceiptPct . '%(' . $poNoReceipt . ')',
|
||||||
@@ -758,7 +758,7 @@
|
|||||||
'barRole' => 'ops-risk-no-receipt-bar',
|
'barRole' => 'ops-risk-no-receipt-bar',
|
||||||
'href' => $platformOrdersQuickLinks['paid_no_receipt'],
|
'href' => $platformOrdersQuickLinks['paid_no_receipt'],
|
||||||
'ariaLabel' => '进入已付无回执订单集合',
|
'ariaLabel' => '进入已付无回执订单集合',
|
||||||
'label' => '无回执',
|
'label' => '已付无回执',
|
||||||
'pct' => $pctRiskNoReceipt,
|
'pct' => $pctRiskNoReceipt,
|
||||||
'title' => $riskNoReceipt . ' / ' . $poTotalForOps . '(' . $pctRiskNoReceipt . '%)',
|
'title' => $riskNoReceipt . ' / ' . $poTotalForOps . '(' . $pctRiskNoReceipt . '%)',
|
||||||
'value' => $pctRiskNoReceipt . '%(' . $riskNoReceipt . ')',
|
'value' => $pctRiskNoReceipt . '%(' . $riskNoReceipt . ')',
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminDashboardPaidNoReceiptVisibleLabelShouldUsePaidNoReceiptPhraseTest 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_visible_label_should_use_paid_no_receipt_phrase(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
$html = (string) $res->getContent();
|
||||||
|
$this->assertMatchesRegularExpression('/data-role="dashboard-po-no-receipt-row"[\s\S]*?已付无回执/u', $html);
|
||||||
|
$this->assertMatchesRegularExpression('/data-role="ops-risk-no-receipt-row"[\s\S]*?已付无回执/u', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user