test(platform-orders): ensure export ledger link starts with download param on index
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user