补充平台订单页内导航使用说明
This commit is contained in:
@@ -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-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>
|
<a class="btn btn-secondary btn-sm" data-role="po-page-jump-list" aria-label="定位到订单列表" href="#po-list-card">订单列表</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="muted muted-xs mt-6" data-role="po-page-jump-note">仅用于页内快速跳转,不会改变当前筛选状态。</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="page-header-actions">
|
<div class="page-header-actions">
|
||||||
|
|||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user