diff --git a/tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php b/tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php new file mode 100644 index 0000000..9d46724 --- /dev/null +++ b/tests/Feature/AdminPlatformOrderExportKeepsBatchBmpa24hFilterTest.php @@ -0,0 +1,33 @@ +seed(); + + $this->post('/admin/login', [ + 'email' => 'platform.admin@demo.local', + 'password' => 'Platform@123456', + ])->assertRedirect('/admin'); + } + + public function test_export_form_keeps_batch_mark_paid_and_activate_24h_filter_value(): void + { + $this->loginAsPlatformAdmin(); + + $res = $this->get('/admin/platform-orders?batch_mark_paid_and_activate_24h=1'); + $res->assertOk(); + + // 导出表单应透传当前筛选口径,避免“列表筛选已生效但导出漏口径” + $res->assertSee('
assertSee('', false); + } +}