Report: crossing readings from traceroutes and cable owners; flat-fit section removed

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Toby
2026-10-27 20:19:08 -04:00
parent c094eb88fa
commit df29028ae8
9 changed files with 178 additions and 181 deletions
+14
View File
@@ -0,0 +1,14 @@
import { chromium } from 'playwright-core';
import { PAGE } from './paths.mjs';
const b = await chromium.launch({ executablePath: process.env.CH }); const p = await b.newPage({ viewport: { width: 1440, height: 900 } });
const errs = []; p.on('pageerror', e => errs.push(e.message));
await p.goto(PAGE('site/index.html')); await p.waitForTimeout(1200);
const run = async (loc, anchor, ms) => { await p.fill('#byoA', loc); await p.selectOption('#byoB', { label: anchor }); await p.fill('#byoT', ms); await p.click('#byo button.go'); await p.waitForTimeout(200);
return (await p.innerText('#byoout')).replace(/\s+/g, ' ').slice(0, 330) };
const opts = await p.$$eval('#byoB option', o => o.map(x => x.textContent));
console.log('anchors offered:', opts.length);
console.log('1', await run('Detroit, US', opts.find(o => o.startsWith('Sydney')), '197.4'));
console.log('2', await run('Southfield', opts.find(o => o.startsWith('Auckland')), '222.3'));
console.log('3', await run('-33.87, 151.21', opts.find(o => o.startsWith('Auckland')), '25'));
console.log('4', await run('Nowhereville', opts.find(o => o.startsWith('Sydney')), '20'));
console.log('ERRORS', JSON.stringify(errs)); await b.close();
+7
View File
@@ -0,0 +1,7 @@
import { chromium } from 'playwright-core';
import { PAGE } from './paths.mjs';
const b = await chromium.launch({ executablePath: process.env.CH }); const p = await b.newPage(); const errs = []; p.on('pageerror', e => errs.push(e.message));
await p.goto(PAGE('site/index.html')); await p.waitForTimeout(1000);
await p.focus('#byoA'); const v = await p.inputValue('#byoA');
await p.type('#byoA', 'Lond'); const opts = await p.$$eval('#byocities option', o => o.filter(x => x.value.toLowerCase().startsWith('lond')).map(x => x.value));
console.log('after focus:', JSON.stringify(v), 'matches for "Lond":', opts.slice(0, 4), 'ERRORS', JSON.stringify(errs)); await b.close();
+11
View File
@@ -0,0 +1,11 @@
import { chromium } from 'playwright-core';
import { PAGE } from './paths.mjs';
const b = await chromium.launch({ executablePath: process.env.CH }); const errs = [];
for (const [w, h] of [[1440, 900], [390, 844]]) {
const p = await b.newPage({ viewport: { width: w, height: h } }); p.on('pageerror', e => errs.push(e.message));
await p.goto(PAGE('site/index.html')); await p.waitForTimeout(1200);
await p.locator('#netx').screenshot({ path: `out/netx_${w}.png` });
const sw = await p.evaluate(() => document.documentElement.scrollWidth); if (sw !== w) errs.push(`${w} scrollWidth ${sw}`);
await p.close();
}
console.log('ERRORS', JSON.stringify(errs)); await b.close();