补充平台订单工具区总说明

This commit is contained in:
萝卜
2026-03-19 06:03:36 +08:00
parent 916107e68f
commit a0f7b4eede
2 changed files with 34 additions and 0 deletions

View File

@@ -1197,6 +1197,7 @@
@endphp
<div class="tool-grid" data-role="po-tools-grid" aria-label="平台订单工具区网格">
<div class="muted muted-xs mb-10" data-role="po-tools-grid-intro">当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。</div>
<div class="tool-group focus-box" data-role="po-tools-group-export" aria-label="平台订单导出工具组">
<div class="tool-group-title">导出</div>
<form method="get" action="/admin/platform-orders/export" class="mb-0">

View File

@@ -0,0 +1,33 @@
<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class AdminPlatformOrderIndexToolGridShouldHaveIntroTextTest 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_should_have_intro_text(): void
{
$this->loginAsPlatformAdmin();
$res = $this->get('/admin/platform-orders');
$res->assertOk();
$html = (string) $res->getContent();
$this->assertStringContainsString('data-role="po-tools-grid-intro"', $html);
$this->assertStringContainsString('当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。', $html);
}
}