diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 859339d..063d0db 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1198,7 +1198,15 @@
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
-
+ +
导出
@@ -1271,7 +1279,7 @@
-
+
批量标记支付并生效(BMPA)
@php $batchBmpaBlocked = (bool) ($toolGuards['batch_bmpa']['blocked'] ?? false); @@ -1326,7 +1334,7 @@
-
+
批量仅标记为已生效
@php $batchMarkActivatedBlocked = (bool) ($toolGuards['batch_mark_activated']['blocked'] ?? false); @@ -1384,7 +1392,7 @@
-
+
清理失败标记:同步订阅
@php $clearSyncBlocked = (bool) ($toolGuards['clear_sync_errors']['blocked'] ?? false); @@ -1432,7 +1440,7 @@
-
+
清理失败标记:批量 BMPA
@php $clearBmpaBlocked = (bool) ($toolGuards['clear_bmpa_errors']['blocked'] ?? false); diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridShouldHaveJumpLinksTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridShouldHaveJumpLinksTest.php new file mode 100644 index 0000000..bdbca70 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridShouldHaveJumpLinksTest.php @@ -0,0 +1,38 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_platform_orders_tool_grid_should_have_jump_links(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders'); + $res->assertOk(); + + $html = (string) $res->getContent(); + $this->assertStringContainsString('data-role="po-tools-grid-jump-links"', $html); + $this->assertStringContainsString('href="#po-tools-export"', $html); + $this->assertStringContainsString('href="#batch-activate-subscriptions"', $html); + $this->assertStringContainsString('href="#po-tools-batch-bmpa"', $html); + $this->assertStringContainsString('href="#po-tools-batch-mark-activated"', $html); + $this->assertStringContainsString('href="#po-tools-clear-sync-errors"', $html); + $this->assertStringContainsString('href="#po-tools-clear-bmpa-errors"', $html); + } +}