补充工具区导航回摘要入口
This commit is contained in:
@@ -1203,7 +1203,7 @@
|
|||||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-summary" aria-label="定位到订单摘要概览" href="#po-summary-cards">摘要概览</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-summary" aria-label="定位到订单摘要概览" href="#po-summary-cards">摘要概览</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-filters" aria-label="定位到筛选条件" href="#filters">筛选条件</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-filters" aria-label="定位到筛选条件" href="#filters">筛选条件</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-export" aria-label="定位到导出工具组" href="#po-tools-export">导出</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-export" aria-label="定位到导出工具组" href="#po-tools-export">导出</a>
|
||||||
<span class="muted muted-xs" data-role="po-tools-grid-jump-links-note" aria-label="平台订单工具区快速导航说明" title="快速导航仅负责定位工具组,不会直接执行批量动作">快速定位只负责跳转到工具组,不会直接执行动作;如需先调整范围,可先<a class="link" data-role="po-tools-grid-jump-links-go-filters" aria-label="回到筛选条件" title="先回筛选再执行工具动作" href="#filters">回到筛选条件</a>。</span>
|
<span class="muted muted-xs" data-role="po-tools-grid-jump-links-note" aria-label="平台订单工具区快速导航说明" title="快速导航仅负责定位工具组,不会直接执行批量动作">快速定位只负责跳转到工具组,不会直接执行批量动作;如需先调整范围,可先<a class="link" data-role="po-tools-grid-jump-links-go-filters" aria-label="回到筛选条件" title="先回筛选再执行工具动作" href="#filters">回到筛选条件</a>,或<a class="link" data-role="po-tools-grid-jump-links-go-summary" aria-label="回到摘要概览" title="先回摘要概览查看当前盘面" href="#po-summary-cards">回到摘要概览</a>。</span>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-activate" aria-label="定位到批量同步订阅工具组" href="#batch-activate-subscriptions">批量同步</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-activate" aria-label="定位到批量同步订阅工具组" href="#batch-activate-subscriptions">批量同步</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-bmpa" aria-label="定位到批量标记支付并生效工具组" href="#po-tools-batch-bmpa">批量BMPA</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-bmpa" aria-label="定位到批量标记支付并生效工具组" href="#po-tools-batch-bmpa">批量BMPA</a>
|
||||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-mark-activated" aria-label="定位到批量仅标记为已生效工具组" href="#po-tools-batch-mark-activated">批量仅生效</a>
|
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-mark-activated" aria-label="定位到批量仅标记为已生效工具组" href="#po-tools-batch-mark-activated">批量仅生效</a>
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
class AdminPlatformOrderIndexToolGridJumpLinksNoteShouldLinkBackToSummaryTest 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_tool_grid_jump_links_note_should_link_back_to_summary(): void
|
||||||
|
{
|
||||||
|
$this->loginAsPlatformAdmin();
|
||||||
|
|
||||||
|
$res = $this->get('/admin/platform-orders');
|
||||||
|
$res->assertOk();
|
||||||
|
|
||||||
|
$html = (string) $res->getContent();
|
||||||
|
$this->assertStringContainsString('data-role="po-tools-grid-jump-links-go-summary"', $html);
|
||||||
|
$this->assertStringContainsString('href="#po-summary-cards"', $html);
|
||||||
|
$this->assertStringContainsString('回到摘要概览', $html);
|
||||||
|
$this->assertStringContainsString('title="先回摘要概览查看当前盘面"', $html);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user