|
|
|
|
@ -86,10 +86,6 @@ $assert(str_contains($sidebar, 'href="/user/cloud/traffic"')
|
|
|
|
|
&& str_contains($template, 'id="cloud-traffic-list"')
|
|
|
|
|
&& str_contains($template, '下一批额度到期')
|
|
|
|
|
&& str_contains($template, '本实例已用')
|
|
|
|
|
&& str_contains($template, '累计总流量')
|
|
|
|
|
&& str_contains($template, '{$instance.lifetime_display|escape:')
|
|
|
|
|
&& str_contains($template, '“本实例已用”和 RX / TX 为当前周期采样')
|
|
|
|
|
&& str_contains($template, '“累计总流量”为实例生命周期累计值')
|
|
|
|
|
&& str_contains($template, '只显示已经进入强制执行的线路分组'),
|
|
|
|
|
'The user traffic-pool page lacks SSR first paint, navigation or clear shared-vs-instance copy.');
|
|
|
|
|
|
|
|
|
|
@ -104,28 +100,16 @@ $assert(str_contains($script,
|
|
|
|
|
&& str_contains($script, 'pool.active_consumed_bytes')
|
|
|
|
|
&& str_contains($script, 'pool.available_bytes')
|
|
|
|
|
&& str_contains($script, 'pool.projection_ready === true')
|
|
|
|
|
&& str_contains($script,
|
|
|
|
|
"fact('累计总流量', formatBytes(instance.lifetime_traffic_bytes))")
|
|
|
|
|
&& str_contains($script, "preparing: ['额度准备中', 'warning']"),
|
|
|
|
|
'Browser code must only refresh the server projection and must not mutate, sum or inject traffic data.');
|
|
|
|
|
|
|
|
|
|
$assert(str_contains($view, 'function trafficPools(')
|
|
|
|
|
&& str_contains($view, "'network_restriction_state'")
|
|
|
|
|
&& str_contains($view, "'lifetime_display'")
|
|
|
|
|
&& str_contains($readModel, "'lifetime_traffic_bytes'")
|
|
|
|
|
&& str_contains($readModel, "'lifetime_download_bytes'")
|
|
|
|
|
&& str_contains($readModel, "'lifetime_upload_bytes'")
|
|
|
|
|
&& str_contains($detail, 'id="vm-detail-traffic-pool-link"')
|
|
|
|
|
&& str_contains($detail, '本实例本期下载(RX)')
|
|
|
|
|
&& str_contains($detail, '本实例本期上传(TX)')
|
|
|
|
|
&& str_contains($styles, '.cloud-traffic-facts')
|
|
|
|
|
&& str_contains($styles, '.cloud-traffic-instance')
|
|
|
|
|
&& str_contains($styles,
|
|
|
|
|
'.cloud-traffic-instance dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))')
|
|
|
|
|
&& str_contains($styles,
|
|
|
|
|
'.cloud-traffic-instance .state-pill{max-width:100%;white-space:normal')
|
|
|
|
|
&& str_contains($styles,
|
|
|
|
|
'@media(max-width:1100px){.cloud-traffic-instance{grid-template-columns:1fr}.cloud-traffic-instance dl{grid-template-columns:repeat(2,minmax(0,1fr))')
|
|
|
|
|
&& str_contains($styles, '@media(max-width:510px)')
|
|
|
|
|
&& preg_match(
|
|
|
|
|
"/venix_asset_version value='20261101[0-9]+'/",
|
|
|
|
|
|