chore(admin-ui): hide renew tool link in expiry view
This commit is contained in:
@@ -94,8 +94,8 @@ class AdminSiteSubscriptionIndexCreateRenewalOrderLinkTest extends TestCase
|
||||
}
|
||||
}
|
||||
|
||||
$this->assertTrue($found, '未找到包含当前筛选条件与 back 的创建续费订单链接');
|
||||
$res->assertSee('创建续费订单(带当前筛选)', false);
|
||||
$this->assertTrue($found, '未找到包含当前筛选条件与 back 的续费下单链接');
|
||||
$res->assertSee('续费下单(先选订阅)', false);
|
||||
|
||||
// 防 back 嵌套
|
||||
$res->assertDontSee('back%3D', false);
|
||||
|
||||
@@ -27,6 +27,8 @@ class AdminSiteSubscriptionIndexExpiryGovernanceRenewalCtaTest extends TestCase
|
||||
$res->assertOk();
|
||||
|
||||
$res->assertSee('创建续费订单(当前集合)');
|
||||
// 去重降噪:到期集合视图已有专用 CTA,此处不应再出现“续费下单(先选订阅)”工具入口
|
||||
$res->assertDontSee('续费下单(先选订阅)');
|
||||
|
||||
// CTA 应带上当前筛选 merchant_id/plan_id,并且 back 回到当前列表(selfWithoutBack)
|
||||
$res->assertSee('href="/admin/platform-orders/create?order_type=renewal&require_subscription=1&merchant_id=2&plan_id=3&back=%2Fadmin%2Fsite-subscriptions%3Fexpiry%3Dexpiring_7d%26merchant_id%3D2%26plan_id%3D3"', false);
|
||||
|
||||
Reference in New Issue
Block a user