From d1805f1c21f8533028f17a380d51ae7356040ccb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 03:03:59 +0800 Subject: [PATCH] feat(batch): add copy buttons for all/retry governance links on batch show --- resources/views/admin/platform_batches/show.blade.php | 3 +++ ...ShowPageCopyGovernanceLinksButtonsShouldRenderTest.php | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/resources/views/admin/platform_batches/show.blade.php b/resources/views/admin/platform_batches/show.blade.php index affc3d4..c2a001c 100644 --- a/resources/views/admin/platform_batches/show.blade.php +++ b/resources/views/admin/platform_batches/show.blade.php @@ -120,6 +120,7 @@
说明:当前批次为“冗余写入到每条订单 meta.last_result”的模式;后续可演进为独立批次表。
diff --git a/tests/Feature/AdminPlatformBatchShowPageCopyGovernanceLinksButtonsShouldRenderTest.php b/tests/Feature/AdminPlatformBatchShowPageCopyGovernanceLinksButtonsShouldRenderTest.php index 077eb1b..7e56152 100644 --- a/tests/Feature/AdminPlatformBatchShowPageCopyGovernanceLinksButtonsShouldRenderTest.php +++ b/tests/Feature/AdminPlatformBatchShowPageCopyGovernanceLinksButtonsShouldRenderTest.php @@ -33,6 +33,14 @@ class AdminPlatformBatchShowPageCopyGovernanceLinksButtonsShouldRenderTest exten ->getContent(); $this->assertStringContainsString('data-action="copy-link"', $html); + + // 已存在:本批次失败 / 按Top原因 $this->assertStringContainsString('data-role="copy-failed-link"', $html); + + // 新增:本批次全部 + $this->assertStringContainsString('data-role="copy-all-link"', $html); + + // 新增:本批次可同步重试(BAS) + $this->assertStringContainsString('data-role="copy-retry-syncable-link"', $html); } }