fe-map: data and tolerance changes re-score without moving cities; caption for the maximum-only case

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Toby
2026-10-31 12:40:46 -04:00
parent 68b9c3cf05
commit a5fe852429
3 changed files with 48 additions and 22 deletions
+6 -2
View File
@@ -76,13 +76,17 @@ console.log('Best start: broken', kb, 'build says', want);
if (kb !== want) fail('best layout count differs from the build', kb, want);
// flights off: the plane can satisfy limits alone by shrinking
await p.click('#d-fl');
await p.waitForTimeout(500);
const ch = await p.evaluate(() => [document.getElementById('status').textContent, sv.total, running]);
if (!/^Measurements changed/.test(ch[0]) || ch[1] !== 0 || ch[2]) fail('changing the data should re-score without moving the cities', ch);
await p.click('#run');
await p.waitForFunction(() => /^Done/.test(document.getElementById('status').textContent), null, { timeout: 120000 });
const kf = await broken();
const capf = await p.evaluate(() => document.getElementById('mapcap').textContent);
if (!/no flat map can fail them/.test(capf)) fail('flight-times-off caption missing', capf);
console.log('Limits only: broken', kf);
if (kf > 5) fail('limits alone should be (nearly) satisfiable on a plane', kf);
if (await p.evaluate(() => document.getElementById('flnote').hidden)) fail('flight-times-off note not shown');
await p.click('#d-fl');
if (!(await p.evaluate(() => document.getElementById('flnote').hidden))) fail('flight-times-off note still shown');
await p.click('#starts button[data-start="best"]');
await p.waitForTimeout(300);
// 3D release