SiteSubscription index: refine renewal entry copy and align tests
This commit is contained in:
@@ -243,9 +243,12 @@
|
|||||||
}
|
}
|
||||||
$createOrderFromSubIndexUrl = \App\Support\BackUrl::withBack('/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($q), $selfWithoutBack);
|
$createOrderFromSubIndexUrl = \App\Support\BackUrl::withBack('/admin/platform-orders/create?' . \Illuminate\Support\Arr::query($q), $selfWithoutBack);
|
||||||
@endphp
|
@endphp
|
||||||
<a class="btn btn-sm" href="{!! $createOrderFromSubIndexUrl !!}">创建续费订单(带当前筛选)</a>
|
<a class="btn btn-sm" href="{!! $createOrderFromSubIndexUrl !!}">续费下单(先选订阅)</a>
|
||||||
|
</div>
|
||||||
|
<div class="muted muted-xs mt-6">
|
||||||
|
用于运营从订阅目录快速发起续费下单:会把当前 merchant_id/plan_id 作为默认值带到下单页。
|
||||||
|
<span class="muted">续费单必须绑定订阅,建议从下方列表行内「续费下单」选择具体订阅。</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="muted muted-xs mt-6">用于运营从订阅目录快速补单/续费:会把当前 merchant_id/plan_id/site_subscription_id 作为默认值带到下单页。</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ class AdminSiteSubscriptionIndexCreateRenewalOrderKeepsFiltersShouldCarryRequire
|
|||||||
|
|
||||||
$res->assertOk();
|
$res->assertOk();
|
||||||
|
|
||||||
$res->assertSee('创建续费订单(带当前筛选)', false);
|
$res->assertSee('续费下单(先选订阅)', false);
|
||||||
$res->assertSee('require_subscription=1', false);
|
$res->assertSee('require_subscription=1', false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class AdminSiteSubscriptionIndexExpiryGovernanceRenewalCtaTest extends TestCase
|
|||||||
$res->assertSee('创建续费订单(当前集合)');
|
$res->assertSee('创建续费订单(当前集合)');
|
||||||
|
|
||||||
// CTA 应带上当前筛选 merchant_id/plan_id,并且 back 回到当前列表(selfWithoutBack)
|
// CTA 应带上当前筛选 merchant_id/plan_id,并且 back 回到当前列表(selfWithoutBack)
|
||||||
$res->assertSee('href="/admin/platform-orders/create?order_type=renewal&merchant_id=2&plan_id=3&back=%2Fadmin%2Fsite-subscriptions%3Fexpiry%3Dexpiring_7d%26merchant_id%3D2%26plan_id%3D3"', false);
|
$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);
|
||||||
|
|
||||||
// 链接不应出现 &(只检查该 CTA 的 href 文本中不含 &)
|
// 链接不应出现 &(只检查该 CTA 的 href 文本中不含 &)
|
||||||
$html = (string) $res->getContent();
|
$html = (string) $res->getContent();
|
||||||
|
|||||||
Reference in New Issue
Block a user