diff --git a/e2e/qwen-document.mjs b/e2e/qwen-document.mjs index ecac0190..cc54f989 100644 --- a/e2e/qwen-document.mjs +++ b/e2e/qwen-document.mjs @@ -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`}); diff --git a/e2e/run-qwen-document.py b/e2e/run-qwen-document.py index 3dc0b7d6..0809c7bf 100644 --- a/e2e/run-qwen-document.py +++ b/e2e/run-qwen-document.py @@ -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: