This commit is contained in:
33333-33333 2026-07-31 12:54:46 +09:00
commit c3a6f5ff37
80 changed files with 2512 additions and 1625 deletions

View file

@ -3,7 +3,7 @@
const http=require('http');
const path=require('path');
const {spawn}=require('child_process');
const {chromium}=require('playwright');
const {chromium}=require('playwright-core');
const {assert,root}=require('./helpers/app-source');
const port=61000+Math.floor(Math.random()*1000);
@ -93,7 +93,7 @@ async function waitForServer(){
if(!result.fontReady)console.log('Store UI diagnostics:',JSON.stringify(result));
assert(result.flags===262,'Flag cursor catalog is incomplete');
assert(result.fontReady&&/DotGothic16Local/.test(result.bodyFont)&&/DotGothic16Local/.test(result.buttonFont)&&/DotGothic16Local/.test(result.numberFont),'Bundled Japanese dot font did not load or was overridden');
assert(result.faceMin===500&&result.faceMax===50000&&result.flagBase===10000&&result.oecdBase===20000&&Math.abs(result.shopChance-1/30)<1e-12,'Cursor prices or the 1/30 shop chance are incorrect');
assert(result.faceMin===500&&result.faceMax===50000&&result.flagBase===10000&&result.oecdBase===20000&&Math.abs(result.shopChance-1/10)<1e-12,'Cursor prices or the 1/10 shop chance are incorrect');
assert(result.meta==='店主UI TEST'&&!result.meta.includes('価格は固定'),'Fixed-price shop copy remains');
assert(result.headings.join('|')==='アイテム|カーソル','Shop sections are not separated');
assert(result.items===2&&result.cursors===12,'Shop does not render its 2+12 inventory');