补充摘要导航工具区入口

This commit is contained in:
萝卜
2026-03-19 23:11:23 +08:00
parent 4d456eff7e
commit 016080d662
2 changed files with 37 additions and 0 deletions

View File

@@ -673,6 +673,7 @@
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-reconcile-mismatch" aria-label="定位到对账不一致摘要卡" title="回到对账不一致摘要卡" href="#po-summary-card-reconcile-mismatch">对账不一致</a>
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-syncable" aria-label="定位到可同步摘要卡" title="回到可同步摘要卡" href="#po-summary-card-syncable">可同步</a>
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-renewal-missing-sub" aria-label="定位到续费缺订阅摘要卡" title="回到续费缺订阅摘要卡" href="#po-summary-card-renewal-missing-sub">续费缺订阅</a>
<a class="btn btn-secondary btn-sm" data-role="po-summary-jump-tools" aria-label="定位到工具区" title="前往工具区执行导出或批量动作" href="#po-tools-grid">工具区</a>
</div>
<div class="grid-3 mb-20" id="po-summary-cards" data-role="po-summary-cards">
<div class="card">

View File

@@ -0,0 +1,36 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderSummaryJumpLinksShouldIncludeToolsShortcutTest 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_links_should_include_tools_shortcut(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-summary-jump-tools"', $html);
$this->assertStringContainsString('href="#po-tools-grid"', $html);
$this->assertStringContainsString('aria-label="定位到工具区"', $html);
$this->assertStringContainsString('title="前往工具区执行导出或批量动作"', $html);
$this->assertStringContainsString('>工具区<', $html);
}
}