From 26a3786e8286abb434e8480b6a9c2c4f8abb1af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Thu, 19 Mar 2026 07:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=B9=B3=E5=8F=B0=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=B7=A5=E5=85=B7=E5=8C=BA=E5=BF=AB=E9=80=9F=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/platform_orders/index.blade.php | 18 ++++++--- ...erIndexToolGridShouldHaveJumpLinksTest.php | 38 +++++++++++++++++++ 2 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 tests/Feature/AdminPlatformOrderIndexToolGridShouldHaveJumpLinksTest.php 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); + } +}