diff --git a/tests/Feature/AdminPlatformOrderIndexExportLedgerLinkShouldRenderWhenReceiptsPresentTest.php b/tests/Feature/AdminPlatformOrderIndexExportLedgerLinkShouldRenderWhenReceiptsPresentTest.php index ff65331..5b580fe 100644 --- a/tests/Feature/AdminPlatformOrderIndexExportLedgerLinkShouldRenderWhenReceiptsPresentTest.php +++ b/tests/Feature/AdminPlatformOrderIndexExportLedgerLinkShouldRenderWhenReceiptsPresentTest.php @@ -87,6 +87,9 @@ class AdminPlatformOrderIndexExportLedgerLinkShouldRenderWhenReceiptsPresentTest $res->assertSee('导出对账明细', false); $res->assertSee('target="_blank"', false); + // 口径稳定:download=1 必须排在 query 第一位(安全阀 + 测试/前端稳定) + $res->assertDontSee('/admin/platform-orders/' . $withEvidence->id . '/export-ledger?include_order_snapshot=1&download=1', false); + $url2 = '/admin/platform-orders/' . $withoutEvidence->id . '/export-ledger?download=1&include_order_snapshot=1'; $res->assertDontSee($url2, false); }