当前 BMPA run_id:
{{ $batchBmpaRunId }}
+
|
清除 BMPA 批次筛选
diff --git a/tests/Feature/AdminPlatformOrderIndexBatchRunIdBadgesShouldRenderCopyButtonsTest.php b/tests/Feature/AdminPlatformOrderIndexBatchRunIdBadgesShouldRenderCopyButtonsTest.php
new file mode 100644
index 0000000..127ffae
--- /dev/null
+++ b/tests/Feature/AdminPlatformOrderIndexBatchRunIdBadgesShouldRenderCopyButtonsTest.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_page_batch_run_id_badges_should_render_copy_buttons(): void
+ {
+ $this->loginAsPlatformAdmin();
+
+ $html = $this->get('/admin/platform-orders?batch_activation_run_id=BAS_COPY_0001&batch_bmpa_run_id=BMPA_COPY_0001')
+ ->assertOk()
+ ->getContent();
+
+ // BAS 徽章区 copy
+ $this->assertStringContainsString('data-copy-label="BAS run_id"', $html);
+ $this->assertStringContainsString('data-copy-text="BAS_COPY_0001"', $html);
+
+ // BMPA 徽章区 copy
+ $this->assertStringContainsString('data-copy-label="BMPA run_id"', $html);
+ $this->assertStringContainsString('data-copy-text="BMPA_COPY_0001"', $html);
+ }
+}