This commit is contained in:
@@ -94,3 +94,18 @@ test('fenced JSON in AI replies is parsed for readable formatting', () => {
|
||||
assert.equal(segments[1].type, 'json');
|
||||
assert.deepEqual(segments[1].value, {intent: 'speak', reply: 'Rad 1\nRad 2'});
|
||||
});
|
||||
|
||||
test('admin world map draws stored nodes and exposes only established routes as links', () => {
|
||||
assert.match(page, /data-admin-view="world-map">Världskarta/);
|
||||
assert.match(page, /function loadAdminWorldMap/);
|
||||
assert.match(page, /request\('\/api\/admin\/world-map'\)/);
|
||||
assert.match(page, /function renderWorld\(worldId\)/);
|
||||
assert.match(page, /world-map-edge/);
|
||||
assert.match(page, /world-map-node-\$\{node\.id\}/);
|
||||
assert.match(page, /edge\.traversable && !edge\.blocked/);
|
||||
assert.match(page, /location_connections/);
|
||||
assert.match(page, /scene_relations/);
|
||||
assert.match(page, /Noder och beskrivningar/);
|
||||
assert.match(page, /Välj en nod i kartan eller följ en destinationslänk/);
|
||||
assert.match(page, /button\.dataset\.adminView === 'world-map'/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user