City panel opens again with the transit order on Already connected (closes #249)
This commit is contained in:
parent
f0d0675bad
commit
c3b253925d
3 changed files with 12 additions and 1 deletions
|
|
@ -635,3 +635,12 @@ test('#244 the PNI order counts the traffic the PNI list shows at that POP, not
|
|||
assert.equal(ev("S.pni.some(p=>p.city==='ham'&&p.net==='nfx')"), true, 'ordered once the traffic is really there');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test('#249 a city without a POP opens while the transit order is set to Already connected', t => {
|
||||
const { ev, dom, errors } = game(t, '');
|
||||
hire(ev); on(ev, 'transit', { x: 1.5, prov: 'have' });
|
||||
ev("selectCity('lon')");
|
||||
assert.match(dom.window.document.getElementById('panelBody').textContent, /London/);
|
||||
assert.equal(ev("opsProv('lon')&&opsProv('lon').id"), ev("cheapestTransit('lon')&&cheapestTransit('lon').id"), 'the quote uses the cheapest seller');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue