补充页内导航回快捷筛选入口
This commit is contained in:
@@ -111,7 +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" 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-tools" aria-label="回到工具区" title="回到平台订单工具区" href="#po-tools-grid">回到工具区</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-tools" aria-label="回到工具区" title="回到平台订单工具区" href="#po-tools-grid">回到工具区</a>。</div>
|
||||
</div>
|
||||
|
||||
<div class="page-header-actions">
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlatformOrderIndexPageJumpNoteShouldLinkBackToQuickFiltersTest 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_note_should_link_back_to_quick_filters(): void
|
||||
{
|
||||
$this->loginAsPlatformAdmin();
|
||||
|
||||
$res = $this->get('/admin/platform-orders');
|
||||
$res->assertOk();
|
||||
|
||||
$html = (string) $res->getContent();
|
||||
$this->assertStringContainsString('data-role="po-page-jump-back-to-quick-filters"', $html);
|
||||
$this->assertStringContainsString('href="#po-quick-filters"', $html);
|
||||
$this->assertStringContainsString('aria-label="回到快捷筛选"', $html);
|
||||
$this->assertStringContainsString('回到快捷筛选', $html);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user