Toolbar polish: tool prices on buttons, robust stats listener, closeInfoPopup fix; tests on isolated ports
This commit is contained in:
+2
-2
@@ -17,7 +17,7 @@ const srv = createServer((q, r) => {
|
||||
try { r.setHeader('content-type', MIME[extname(p)] || 'application/octet-stream'); r.end(readFileSync(join(DIST, p))); }
|
||||
catch { r.writeHead(404); r.end(); }
|
||||
});
|
||||
await new Promise(r => srv.listen(4173, r));
|
||||
await new Promise(r => srv.listen(4176, r));
|
||||
|
||||
let exe;
|
||||
{ const root = '/root/.cache/ms-playwright';
|
||||
@@ -28,7 +28,7 @@ const b = await chromium.launch({ executablePath: exe, args: ['--no-sandbox', '-
|
||||
const page = await b.newPage({ viewport: { width: 1280, height: 800 }, deviceScaleFactor: 1 });
|
||||
await page.addInitScript(() => localStorage.setItem('polycity.settings.v1',
|
||||
JSON.stringify({ sound: false, shadows: true, autosave: true, minimap: true })));
|
||||
await page.goto('http://127.0.0.1:4173/', { waitUntil: 'load' });
|
||||
await page.goto('http://127.0.0.1:4176/', { waitUntil: 'load' });
|
||||
await page.waitForTimeout(3500);
|
||||
try { const h = await page.$('#helpClose'); if (h) await h.click(); } catch {}
|
||||
await page.waitForTimeout(600);
|
||||
|
||||
Reference in New Issue
Block a user