线索页筛选保留 back 上下文(补护栏测试)

This commit is contained in:
萝卜
2026-03-14 15:56:25 +00:00
parent 546ffc21e6
commit 0ce233bded

View File

@@ -38,6 +38,8 @@ class AdminPlatformLeadIndexBackLinkNotEscapedTest extends TestCase
$res->assertSee('← 返回上一页(保留上下文)', false);
$res->assertSee('href="' . $back . '"', false);
$res->assertDontSee('&', false);
// 页面其它位置(例如表单隐藏字段)可能会出现 &,这里只要求“返回上一页”这个链接不被转义。
$res->assertDontSee('href="' . str_replace('&', '&', $back) . '"', false);
}
}