补强摘要导航说明提示文案

This commit is contained in:
萝卜
2026-03-19 20:39:20 +08:00
parent 3c2b2c80f9
commit ce07034886
2 changed files with 34 additions and 1 deletions

View File

@@ -667,7 +667,7 @@
<div class="actions gap-10 mb-10" data-role="po-summary-jump-links" aria-label="平台订单摘要快捷导航"> <div class="actions gap-10 mb-10" data-role="po-summary-jump-links" aria-label="平台订单摘要快捷导航">
<span class="muted muted-xs" data-role="po-summary-jump-prefix" aria-label="平台订单摘要导航前缀">摘要导航:</span> <span class="muted muted-xs" data-role="po-summary-jump-prefix" aria-label="平台订单摘要导航前缀">摘要导航:</span>
<span class="muted muted-xs" data-role="po-summary-jump-note" aria-label="平台订单摘要导航说明"><span data-role="po-summary-jump-note-prefix">说明:</span>仅用于摘要区快速定位,不会改变当前筛选状态。</span> <span class="muted muted-xs" data-role="po-summary-jump-note" aria-label="平台订单摘要导航说明" title="摘要导航仅用于快速定位摘要卡,不会改变筛选状态"><span data-role="po-summary-jump-note-prefix">说明:</span>仅用于摘要区快速定位,不会改变当前筛选状态。</span>
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-paid-no-receipt" aria-label="定位到已付无回执摘要卡" title="回到已付无回执摘要卡" href="#po-summary-card-paid-no-receipt">已付无回执</a> <a class="btn btn-secondary btn-sm" data-role="po-summary-jump-paid-no-receipt" aria-label="定位到已付无回执摘要卡" title="回到已付无回执摘要卡" href="#po-summary-card-paid-no-receipt">已付无回执</a>
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡" title="回到对账不一致摘要卡" href="#po-summary-card-reconcile-mismatch">对账不一致</a> <a class="btn btn-secondary btn-sm" data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡" title="回到对账不一致摘要卡" href="#po-summary-card-reconcile-mismatch">对账不一致</a>
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-syncable" aria-label="定位到可同步摘要卡" title="回到可同步摘要卡" href="#po-summary-card-syncable">可同步</a> <a class="btn btn-secondary btn-sm" data-role="po-summary-jump-syncable" aria-label="定位到可同步摘要卡" title="回到可同步摘要卡" href="#po-summary-card-syncable">可同步</a>

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderSummaryJumpNoteShouldHaveTitleTest 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_platform_order_summary_jump_note_should_have_title(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-summary-jump-note"', $html);
$this->assertStringContainsString('title="摘要导航仅用于快速定位摘要卡,不会改变筛选状态"', $html);
}
}