|
|
|
|
@ -349,10 +349,29 @@ $offerRenderer = $offerRendererStart === false || $offerRendererEnd === false
|
|
|
|
|
? ''
|
|
|
|
|
: substr($clientScript, $offerRendererStart, $offerRendererEnd - $offerRendererStart);
|
|
|
|
|
$assert(str_contains($offerRenderer, "'offer-table-head'")
|
|
|
|
|
&& str_contains($offerRenderer,
|
|
|
|
|
"[t('deploy.offer.name'), t('deploy.offer.cpu'), 'Memory', 'Nvme', 'Traffic']")
|
|
|
|
|
&& !str_contains($offerRenderer, "t('deploy.offer.memory')")
|
|
|
|
|
&& !str_contains($offerRenderer, "t('deploy.offer.disk')")
|
|
|
|
|
&& !str_contains($offerRenderer, "t('deploy.offer.traffic')")
|
|
|
|
|
&& str_contains($offerRenderer, 'formatMemoryGiB(offer.memory_mib)')
|
|
|
|
|
&& str_contains($offerRenderer, 'formatTrafficTiB(offer.traffic_tib)')
|
|
|
|
|
&& !str_contains($offerRenderer, 'formatUsd(offer.price)')
|
|
|
|
|
&& !str_contains($offerRenderer, 'bandwidth_mbps')
|
|
|
|
|
&& str_contains($deployTemplate,
|
|
|
|
|
'<span>Memory</span><span>Nvme</span><span>Traffic</span>')
|
|
|
|
|
&& !str_contains($deployTemplate, "key='deploy.offer.memory'")
|
|
|
|
|
&& !str_contains($deployTemplate, "key='deploy.offer.disk'")
|
|
|
|
|
&& !str_contains($deployTemplate, "key='deploy.offer.traffic'")
|
|
|
|
|
&& str_contains($baseStyles,
|
|
|
|
|
'.offer-option>:nth-child(3)::before{content:"Memory"}')
|
|
|
|
|
&& str_contains($baseStyles,
|
|
|
|
|
'.offer-option>:nth-child(4)::before{content:"Nvme"}')
|
|
|
|
|
&& str_contains($baseStyles,
|
|
|
|
|
'.offer-option>:nth-child(5)::before{content:"Traffic"}')
|
|
|
|
|
&& !str_contains($baseStyles, '::before{content:"内存"}')
|
|
|
|
|
&& !str_contains($baseStyles, '::before{content:"硬盘"}')
|
|
|
|
|
&& !str_contains($baseStyles, '::before{content:"每期流量"}')
|
|
|
|
|
&& str_contains($baseStyles, '.offer-option[aria-pressed="true"]::after{content:"✓"')
|
|
|
|
|
&& !str_contains($baseStyles, '.offer-option>:nth-child(6)::before{content:"价格"}')
|
|
|
|
|
&& !str_contains($deployTemplate, 'offer-option-price')
|
|
|
|
|
|