补充平台订单页内导航使用说明

This commit is contained in:
萝卜
2026-03-19 12:00:54 +08:00
parent f53128c4f5
commit dbc639defe
2 changed files with 34 additions and 0 deletions

View File

@@ -111,6 +111,7 @@
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-tools" aria-label="定位到工具区" 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>
</div>
<div class="muted muted-xs mt-6" data-role="po-page-jump-note">仅用于页内快速跳转,不会改变当前筛选状态。</div>
</div>
<div class="page-header-actions">

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexPageJumpLinksShouldHaveUsageNoteTest 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_links_should_have_usage_note(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-page-jump-note"', $html);
$this->assertStringContainsString('仅用于页内快速跳转,不会改变当前筛选状态。', $html);
}
}