HEL-892: verify both original Qwen notes in the detail drawer

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
leefer
2026-10-30 10:52:15 +08:00
co-authored by multica-agent
parent 44ede92551
commit 2209040d83
2 changed files with 15 additions and 6 deletions
+8
View File
@@ -52,6 +52,14 @@ try {
const text=await dialog.innerText();
for(const t of ['64保存位置不是64最终执行参数','17控件','widgetId(rootGraph.id,459,input.name)','双seed','use_default_template=false','两条MarkdownNote','14处标题差异','18端点','37源边','ui.images'])check(text.includes(t),`${width}图特定用途 ${t}`);
check(await dialog.locator('summary').filter({hasText:/节点 [\d:]+ · .*(/}).count()===64,`${width}恰好64项`);
for(const note of fixed.comments) {
const summary=dialog.getByText(`节点 ${note.node_id}`,{exact:true});
await summary.click();const box=summary.locator('..');
const expected=detail.doc_json.source_notes.find(n=>n.node_id===note.node_id || String(n.node_id)===note.node_id);
check(await box.locator('pre').textContent()===JSON.stringify(expected.content,null,2),`${width}注释${note.node_id}原文完整可读`);
check(await dialog.locator('.drawer-body').evaluate(el=>el.scrollWidth<=el.clientWidth),`${width}注释${note.node_id}无溢出`);
await summary.click();
}
const basis=dialog.getByText('版本、源图与连线依据',{exact:true});await basis.click();
check((await basis.locator('..').innerText()).includes('UE7.8'),`${width}扩展与目标绑定未知`);
await dialog.getByText('固定版本参数说明',{exact:true}).scrollIntoViewIfNeeded();await page.screenshot({path:`${out}/${width}-overview.png`});
+7 -6
View File
@@ -57,12 +57,13 @@ def main():
if time.monotonic() > deadline:
raise TimeoutError(url)
time.sleep(0.2)
subprocess.run(["node", "e2e/qwen-document.mjs"], cwd=ROOT, check=True)
subprocess.run(["node", "e2e/controlnet-document.mjs"], cwd=ROOT, check=True)
subprocess.run(["node", "e2e/asr-document.mjs"], cwd=ROOT, check=True)
subprocess.run(["node", "e2e/media-document.mjs"], cwd=ROOT, check=True)
subprocess.run(["node", "e2e/audio-document.mjs"], cwd=ROOT, check=True)
subprocess.run(["node", "e2e/h3-document.mjs"], cwd=ROOT, check=True)
names = (
["qwen"]
if "--only-qwen" in sys.argv
else ["qwen", "controlnet", "asr", "media", "audio", "h3"]
)
for name in names:
subprocess.run(["node", f"e2e/{name}-document.mjs"], cwd=ROOT, check=True)
finally:
for p in processes:
if p.poll() is None: