PNI upgrade buttons show the monthly fee too (#110)
After #115: upgrading an existing PNI, in the Peering tab and in the NOC's connection list, also showed only the one-off cost. Both now read 'Upgrade 100G $2.3k + $350/mo', like transit. The two old labels without a monthly part are no longer used and leave it.js and pt.js.
This commit is contained in:
parent
afc5ba3c37
commit
a1f895d754
5 changed files with 7 additions and 7 deletions
|
|
@ -1145,5 +1145,9 @@ test('#110 PNI buttons show the monthly port fee, not just the one-off setup', (
|
|||
ev("ACT.start({});S.cash=1e9;S.lvl=6;for(const g of GOALS)S.done[g.id]=0;ACT.launchBB({city:'fra'});selectCity('fra');ACT.tab({t:'peer'})");
|
||||
const txt = ev("document.getElementById('panelBody').textContent");
|
||||
assert.match(txt, /10G \$1\.8k \+ \$200\/mo/, 'setup plus the monthly fee, like IX ports and LAG members');
|
||||
// upgrading an existing PNI says what the bigger port costs per month too, in the panel and in the NOC's list
|
||||
ev("const n=NETS.find(x=>x.pops.includes('fra')&&!x.tail&&peerOk(x.id,'pni','fra').ok);S.pni.push({id:'p1',net:n.id,city:'fra',tier:0,n:1});after();selectCity('fra');ACT.tab({t:'peer'})");
|
||||
assert.match(ev("document.getElementById('panelBody').textContent"), /Upgrade 100G \$2\.3k \+ \$350\/mo/);
|
||||
assert.match(ev("connUp(conns().find(r=>r.k==='p'&&r.id==='p1')).replace(/<[^>]+>/g,'')"), /Upgrade 100G \$2\.3k \+ \$350\/mo/);
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue