补强页内导航列表入口提示文案

This commit is contained in:
萝卜
2026-03-19 14:33:57 +08:00
parent 9761aabefa
commit bea9e30d2b
2 changed files with 34 additions and 1 deletions

View File

@@ -109,7 +109,7 @@
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-filters" aria-label="定位到筛选条件" title="回到筛选区调整范围" href="#filters">筛选条件</a>
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-summary" aria-label="定位到摘要概览" title="回到摘要卡查看当前盘面" href="#po-summary-cards">摘要概览</a>
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-tools" aria-label="定位到工具区" title="回到工具区执行导出或批量动作" href="#po-tools-grid">工具区</a>
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-list" aria-label="定位到订单列表" href="#po-list-card">订单列表</a>
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-list" aria-label="定位到订单列表" title="回到订单列表查看明细" href="#po-list-card">订单列表</a>
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-top" aria-label="回到页面顶部" href="#po-page-top">回顶部</a>
</div>
<div class="muted muted-xs mt-6" data-role="po-page-jump-note" aria-label="平台订单页内导航说明">仅用于页内快速跳转,不会改变当前筛选状态;可从这里快速回到关键工作区:如需重新查看页头概述,可<a class="link" data-role="po-page-jump-back-to-top" aria-label="回到页面顶部" title="回到平台订单页顶部" href="#po-page-top">回到顶部</a>;如需继续调整集合,可<a class="link" data-role="po-page-jump-back-to-quick-filters" aria-label="回到快捷筛选" title="回到平台订单快捷筛选" href="#po-quick-filters">回到快捷筛选</a>;如需重新查看盘面,可<a class="link" data-role="po-page-jump-back-to-summary" aria-label="回到摘要概览" title="回到平台订单摘要概览" href="#po-summary-cards">回到摘要概览</a>;如需继续执行动作,可<a class="link" data-role="po-page-jump-back-to-tools" aria-label="回到工具区" title="回到平台订单工具区" href="#po-tools-grid">回到工具区</a>;如需核对明细,可<a class="link" data-role="po-page-jump-back-to-list" aria-label="回到订单列表" title="回到平台订单列表" href="#po-list-card">回到订单列表</a></div>

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexPageJumpListShouldHaveTitleTest 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_orders_page_jump_list_should_have_title(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-page-jump-list"', $html);
$this->assertStringContainsString('title="回到订单列表查看明细"', $html);
}
}