补充摘要导航回顶部入口
This commit is contained in:
@@ -667,7 +667,7 @@
|
||||
|
||||
<div class="actions gap-10 mb-10" data-role="po-summary-jump-links" aria-label="平台订单摘要快捷导航">
|
||||
<span class="muted muted-xs" data-role="po-summary-jump-prefix" aria-label="平台订单摘要导航前缀">摘要导航:</span>
|
||||
<span class="muted muted-xs" data-role="po-summary-jump-note" aria-label="平台订单摘要导航说明" title="摘要导航仅用于快速定位摘要卡,不会改变筛选状态"><span data-role="po-summary-jump-note-prefix">说明:</span>仅用于摘要区快速定位,不会改变当前筛选状态;如需重新查看摘要整体,可先<a class="link" data-role="po-summary-jump-back-to-summary-cards" aria-label="回到摘要区" title="回到摘要区查看全部摘要卡" href="#po-summary-cards">回到摘要区</a>;如需重新调整范围,可先<a class="link" data-role="po-summary-jump-back-to-filters" aria-label="回到筛选条件" title="回到筛选区调整范围" href="#filters">回到筛选条件</a>;如需继续执行动作,可<a class="link" data-role="po-summary-jump-back-to-tools" aria-label="回到工具区" title="回到工具区执行导出或批量动作" href="#po-tools-grid">回到工具区</a>。</span>
|
||||
<span class="muted muted-xs" data-role="po-summary-jump-note" aria-label="平台订单摘要导航说明" title="摘要导航仅用于快速定位摘要卡,不会改变筛选状态"><span data-role="po-summary-jump-note-prefix">说明:</span>仅用于摘要区快速定位,不会改变当前筛选状态;如需重新查看页头概述,可<a class="link" data-role="po-summary-jump-back-to-top" aria-label="回到页面顶部" title="回到顶部查看页头概述" href="#po-page-top">回到顶部</a>;如需重新查看摘要整体,可先<a class="link" data-role="po-summary-jump-back-to-summary-cards" aria-label="回到摘要区" title="回到摘要区查看全部摘要卡" href="#po-summary-cards">回到摘要区</a>;如需重新调整范围,可先<a class="link" data-role="po-summary-jump-back-to-filters" aria-label="回到筛选条件" title="回到筛选区调整范围" href="#filters">回到筛选条件</a>;如需继续执行动作,可<a class="link" data-role="po-summary-jump-back-to-tools" aria-label="回到工具区" title="回到工具区执行导出或批量动作" href="#po-tools-grid">回到工具区</a>。</span>
|
||||
<span class="muted muted-xs mb-10" data-role="po-summary-jump-links-note">摘要导航只负责定位到关键摘要卡,不会触发治理动作。</span>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-paid-no-receipt" aria-label="定位到已付无回执摘要卡" title="回到已付无回执摘要卡" href="#po-summary-card-paid-no-receipt">已付无回执</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡" title="回到对账不一致摘要卡" href="#po-summary-card-reconcile-mismatch">对账不一致</a>
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlatformOrderSummaryJumpNoteShouldLinkBackToTopTest 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_order_summary_jump_note_should_link_back_to_top(): void
|
||||
{
|
||||
$this->loginAsPlatformAdmin();
|
||||
|
||||
$res = $this->get('/admin/platform-orders');
|
||||
$res->assertOk();
|
||||
|
||||
$html = (string) $res->getContent();
|
||||
$this->assertStringContainsString('data-role="po-summary-jump-back-to-top"', $html);
|
||||
$this->assertStringContainsString('href="#po-page-top"', $html);
|
||||
$this->assertStringContainsString('aria-label="回到页面顶部"', $html);
|
||||
$this->assertStringContainsString('title="回到顶部查看页头概述"', $html);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user