补充工具区说明回页内导航入口

This commit is contained in:
萝卜
2026-03-19 15:15:02 +08:00
parent 2ffdc47d08
commit 6a7a6dac33
2 changed files with 36 additions and 1 deletions

View File

@@ -1208,7 +1208,7 @@
@endphp @endphp
<div class="tool-grid" id="po-tools-grid" data-role="po-tools-grid" aria-label="平台订单工具区网格"> <div class="tool-grid" id="po-tools-grid" data-role="po-tools-grid" aria-label="平台订单工具区网格">
<div class="muted muted-xs mb-10" data-role="po-tools-grid-intro" aria-label="平台订单工具区说明">当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作;也可使用上方快速定位导航直达目标工具组。</div> <div class="muted muted-xs mb-10" data-role="po-tools-grid-intro" aria-label="平台订单工具区说明">当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作;也可使用上方<a class="link" data-role="po-tools-grid-intro-go-page-jumps" aria-label="回到页内导航" title="回到页内导航查看各区块跳转入口" href="#po-page-jump-links">快速定位导航</a>直达目标工具组。</div>
<div class="actions gap-10 mb-10" data-role="po-tools-grid-jump-links" aria-label="平台订单工具区快速定位导航"> <div class="actions gap-10 mb-10" data-role="po-tools-grid-jump-links" aria-label="平台订单工具区快速定位导航">
<span class="muted muted-xs" data-role="po-tools-grid-jump-links-prefix">快速定位:</span> <span class="muted muted-xs" data-role="po-tools-grid-jump-links-prefix">快速定位:</span>
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-summary" aria-label="定位到订单摘要概览" href="#po-summary-cards">摘要概览</a> <a class="btn btn-secondary btn-sm" data-role="po-tools-jump-summary" aria-label="定位到订单摘要概览" href="#po-summary-cards">摘要概览</a>

View File

@@ -0,0 +1,35 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexToolGridIntroShouldLinkToPageJumpsTest 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_tool_grid_intro_should_link_to_page_jumps(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-tools-grid-intro-go-page-jumps"', $html);
$this->assertStringContainsString('href="#po-page-jump-links"', $html);
$this->assertStringContainsString('aria-label="回到页内导航"', $html);
$this->assertStringContainsString('title="回到页内导航查看各区块跳转入口"', $html);
}
}