Routers: the picture only in the POP overview
The list of other models goes back to its badges; only the model a POP runs shows its picture.
This commit is contained in:
parent
73e11349dc
commit
78d2b7c8c9
3 changed files with 4 additions and 4 deletions
|
|
@ -17,11 +17,11 @@ test('every router model has a picture, and each one is valid SVG', () => {
|
|||
assert.equal(ev('rgArt(99)'), '');
|
||||
});
|
||||
|
||||
test('the POP panel shows the model\'s picture, and the other models show theirs', () => {
|
||||
test('only the POP overview shows a picture: the model in use', () => {
|
||||
const { ev, errors, dom } = load();
|
||||
ev("ACT.start({});if(UI.pendGame)ACT.pitchSkip();S.cash=1e9;selectCity(S.home);UI.tab='links';UI.models=true;renderAll()");
|
||||
const pics = dom.window.document.querySelectorAll('#panel .rgpic');
|
||||
assert.equal(pics.length, ev('RG.length'), 'the model in use plus every other one');
|
||||
assert.equal(pics.length, 1, 'the model in use only, not the list of other models');
|
||||
assert.ok(dom.window.document.querySelector('#panel .rgpic.big svg.rgart'), 'the one in use, big');
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue