diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index f5b849e..66706d3 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -1199,12 +1199,12 @@
当前工具区承载导出、批量治理与失败标记清理,请先缩小筛选范围再执行动作。
- 导出 - 批量同步 - 批量BMPA - 批量仅生效 - 清理同步失败 - 清理BMPA失败 + 导出 + 批量同步 + 批量BMPA + 批量仅生效 + 清理同步失败 + 清理BMPA失败
导出
diff --git a/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveDataRoleTest.php b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveDataRoleTest.php new file mode 100644 index 0000000..27b6bd8 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderIndexToolGridJumpLinksShouldHaveDataRoleTest.php @@ -0,0 +1,37 @@ +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); + } +}