From 5aefc147504a3031747b1ee9207828d16810adea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=9D=E5=8D=9C?= Date: Sat, 14 Mar 2026 15:03:05 +0000 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=AE=A2=E5=8D=95=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=9ABMPA=E5=A4=B1=E8=B4=A5=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E9=95=BF=E5=8E=9F=E5=9B=A0=E5=85=A5=E5=8F=A3?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=98=BE=E5=BC=8F=E5=B8=A6=20bmpa=5Ffailed?= =?UTF-8?q?=5Fonly=3D1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/platform_orders/index.blade.php | 2 +- ...formOrderBmpaFailedReasonTop5LongReasonNoLinkTest.php | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/views/admin/platform_orders/index.blade.php b/resources/views/admin/platform_orders/index.blade.php index 714d03d..5011192 100644 --- a/resources/views/admin/platform_orders/index.blade.php +++ b/resources/views/admin/platform_orders/index.blade.php @@ -532,7 +532,7 @@ 原因过长,请复制到筛选框 - 进入失败集合 + 进入失败集合 @else {{ $reasonText }} ({{ $count }}) diff --git a/tests/Feature/AdminPlatformOrderBmpaFailedReasonTop5LongReasonNoLinkTest.php b/tests/Feature/AdminPlatformOrderBmpaFailedReasonTop5LongReasonNoLinkTest.php index 2b4003a..30417a2 100644 --- a/tests/Feature/AdminPlatformOrderBmpaFailedReasonTop5LongReasonNoLinkTest.php +++ b/tests/Feature/AdminPlatformOrderBmpaFailedReasonTop5LongReasonNoLinkTest.php @@ -74,7 +74,12 @@ class AdminPlatformOrderBmpaFailedReasonTop5LongReasonNoLinkTest extends TestCas // 不应渲染 bmpa_error_keyword= 的链接(避免 URL 过长/特殊字符问题) $page->assertDontSee('bmpa_error_keyword=', false); - // 仍应给一个“进入失败集合”的入口 - $page->assertSee('进入失败集合'); + // 仍应给一个“进入失败集合”的入口,且应显式带 bmpa_failed_only=1(进入失败集合口径更明确) + $html = (string) $page->getContent(); + $this->assertSame( + 1, + preg_match('/]+href="[^"]*bmpa_failed_only=1[^"]*"[^>]*>\s*进入失败集合\s*<\/a>/', $html), + '应渲染带 bmpa_failed_only=1 的「进入失败集合」链接' + ); } }