From e17ae3ada315424524ee3b6c5a182f3024f4f9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Wed, 18 Mar 2026 12:28:56 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E6=9B=B4=E6=96=B0BMPA=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E5=8E=9F=E5=9B=A0TOP=E9=93=BE=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=BE=84=EF=BC=88=E9=BB=98=E8=AE=A4=E5=A4=B1=E8=B4=A5=E9=9B=86?= =?UTF-8?q?=E5=90=88/=E9=87=8D=E8=AF=95=E6=B8=85=E7=90=86failed=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...minPlatformOrderBmpaFailedReasonStatsLinksTest.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/Feature/AdminPlatformOrderBmpaFailedReasonStatsLinksTest.php b/tests/Feature/AdminPlatformOrderBmpaFailedReasonStatsLinksTest.php index f653496..40a233e 100644 --- a/tests/Feature/AdminPlatformOrderBmpaFailedReasonStatsLinksTest.php +++ b/tests/Feature/AdminPlatformOrderBmpaFailedReasonStatsLinksTest.php @@ -69,10 +69,13 @@ class AdminPlatformOrderBmpaFailedReasonStatsLinksTest extends TestCase // 卡片标题 $res->assertSee('批量标记支付并生效失败原因 TOP5'); - // 点击原因 => 自动带上 bmpa_error_keyword - $res->assertSee('/admin/platform-orders?bmpa_error_keyword=' . urlencode($reason), false); + // 点击原因:默认落到失败集合(语义收敛:原因 => 失败集合) + $res->assertSee('/admin/platform-orders?bmpa_failed_only=1&bmpa_error_keyword=' . urlencode($reason), false); - // 一键切到可处理集合重试 => 透传 pending+unpaid - $res->assertSee('bmpa_error_keyword=' . urlencode($reason) . '&status=pending&payment_status=unpaid', false); + // 一键切到可处理集合重试: + // - 需携带 bmpa_processable_only=1 + // - 且必须清掉 bmpa_failed_only,避免 failed_only 与 processable_only 叠加冲突 + $res->assertSee('bmpa_error_keyword=' . urlencode($reason) . '&bmpa_processable_only=1', false); + $res->assertDontSee('bmpa_failed_only=1&bmpa_error_keyword=' . urlencode($reason) . '&bmpa_processable_only=1', false); } }