补强工具区快速导航结构锚点
This commit is contained in:
@@ -1199,12 +1199,12 @@
|
||||
<div class="tool-grid" data-role="po-tools-grid" aria-label="平台订单工具区网格">
|
||||
<div class="muted muted-xs mb-10" data-role="po-tools-grid-intro" aria-label="平台订单工具区说明">当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。</div>
|
||||
<div class="actions gap-10 mb-10" data-role="po-tools-grid-jump-links" aria-label="平台订单工具区快速定位导航">
|
||||
<a class="btn btn-secondary btn-sm" href="#po-tools-export">导出</a>
|
||||
<a class="btn btn-secondary btn-sm" href="#batch-activate-subscriptions">批量同步</a>
|
||||
<a class="btn btn-secondary btn-sm" href="#po-tools-batch-bmpa">批量BMPA</a>
|
||||
<a class="btn btn-secondary btn-sm" href="#po-tools-batch-mark-activated">批量仅生效</a>
|
||||
<a class="btn btn-secondary btn-sm" href="#po-tools-clear-sync-errors">清理同步失败</a>
|
||||
<a class="btn btn-secondary btn-sm" href="#po-tools-clear-bmpa-errors">清理BMPA失败</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-export" href="#po-tools-export">导出</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-activate" href="#batch-activate-subscriptions">批量同步</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-bmpa" href="#po-tools-batch-bmpa">批量BMPA</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-batch-mark-activated" href="#po-tools-batch-mark-activated">批量仅生效</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-clear-sync-errors" href="#po-tools-clear-sync-errors">清理同步失败</a>
|
||||
<a class="btn btn-secondary btn-sm" data-role="po-tools-jump-clear-bmpa-errors" href="#po-tools-clear-bmpa-errors">清理BMPA失败</a>
|
||||
</div>
|
||||
<div class="tool-group focus-box" id="po-tools-export" data-role="po-tools-group-export" aria-label="平台订单导出工具组">
|
||||
<div class="tool-group-title">导出</div>
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature;
|
||||
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class AdminPlatformOrderIndexToolGridJumpLinksShouldHaveDataRoleTest 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_should_have_data_role(): void
|
||||
{
|
||||
$this->loginAsPlatformAdmin();
|
||||
|
||||
$res = $this->get('/admin/platform-orders');
|
||||
$res->assertOk();
|
||||
|
||||
$html = (string) $res->getContent();
|
||||
$this->assertStringContainsString('data-role="po-tools-jump-export"', $html);
|
||||
$this->assertStringContainsString('data-role="po-tools-jump-batch-activate"', $html);
|
||||
$this->assertStringContainsString('data-role="po-tools-jump-batch-bmpa"', $html);
|
||||
$this->assertStringContainsString('data-role="po-tools-jump-batch-mark-activated"', $html);
|
||||
$this->assertStringContainsString('data-role="po-tools-jump-clear-sync-errors"', $html);
|
||||
$this->assertStringContainsString('data-role="po-tools-jump-clear-bmpa-errors"', $html);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user