补强页内导航说明提示文案
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
<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="回到页面顶部" title="回到平台订单页顶部" 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>
|
||||
<div class="muted muted-xs mt-6" data-role="po-page-jump-note" aria-label="平台订单页内导航说明" title="页内导航说明与回跳入口区">仅用于页内快速跳转,不会改变当前筛选状态;可从这里快速回到关键工作区:如需重新查看页头概述,可<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>
|
||||
</div>
|
||||
|
||||
<div class="page-header-actions">
|
||||
@@ -866,6 +866,8 @@
|
||||
'role' => 'po-summary-link-go-add-payment-receipt',
|
||||
'href' => '#add-payment-receipt',
|
||||
'label' => '去补回执',
|
||||
'ariaLabel' => '直达补回执面板',
|
||||
'title' => '直达补回执面板',
|
||||
])
|
||||
<span class="muted">|</span>
|
||||
@include('admin.platform_orders._summary_text_link', [
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlatformOrderIndexPageJumpNoteShouldHaveTitleTest 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_have_title(): 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('title="页内导航说明与回跳入口区"', $html);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user