From 279dd885f316689b8dbb006f22e39f0b26f83b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Tue, 17 Mar 2026 11:12:57 +0800 Subject: [PATCH] test(platform-orders): ensure export ledger link starts with download param on index --- ...ndexExportLedgerLinkShouldRenderWhenReceiptsPresentTest.php | 3 +++ 1 file changed, 3 insertions(+) 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); }